C# Class Caliburn.Micro.View

Hosts attached properties related to view models.
Show file Open project: Caliburn-Micro/Caliburn.Micro

Public Properties

Property Type Description
ApplyConventionsProperty global::Xamarin.Forms.BindableProperty
ContextProperty global::Xamarin.Forms.BindableProperty
GetFirstNonGeneratedView object>.Func
IsGeneratedProperty global::Xamarin.Forms.BindableProperty
IsLoadedProperty global::Xamarin.Forms.BindableProperty
IsScopeRootProperty global::Xamarin.Forms.BindableProperty
ModelProperty global::Xamarin.Forms.BindableProperty

Public Methods

Method Description
ExecuteOnLayoutUpdated ( global::Xamarin.Forms.VisualElement element, EventHandler handler ) : void
ExecuteOnLayoutUpdated ( global::Xamarin.Forms.VisualElement element, EventHandler handler ) : void

Executes the handler the next time the elements's LayoutUpdated event fires.

ExecuteOnLoad ( global::Xamarin.Forms.VisualElement element, RoutedEventHandler handler ) : bool

Executes the handler immediately if the element is loaded, otherwise wires it to the Loaded event.

ExecuteOnUnload ( global::Xamarin.Forms.VisualElement element, RoutedEventHandler handler ) : void

Executes the handler when the element is unloaded.

GetApplyConventions ( global::Xamarin.Forms.BindableObject d ) : bool?

Gets the convention application behavior.

GetContext ( global::Xamarin.Forms.BindableObject d ) : object

Gets the context.

GetModel ( global::Xamarin.Forms.BindableObject d ) : object

Gets the model.

IsElementLoaded ( global::Xamarin.Forms.VisualElement element ) : bool

Determines whether the specified element is loaded.

SetApplyConventions ( global::Xamarin.Forms.BindableObject d, bool value ) : void

Sets the convention application behavior.

SetContext ( global::Xamarin.Forms.BindableObject d, object value ) : void

Sets the context.

SetModel ( global::Xamarin.Forms.BindableObject d, object value ) : void

Sets the model.

Private Methods

Method Description
GetContentPropertyName ( Type type ) : string
OnContextChanged ( global::Xamarin.Forms.BindableObject targetLocation, DependencyPropertyChangedEventArgs e ) : void
OnModelChanged ( global::Xamarin.Forms.BindableObject targetLocation, DependencyPropertyChangedEventArgs args ) : void
SetContentProperty ( object targetLocation, object view ) : bool
SetContentPropertyCore ( object targetLocation, object view ) : bool

Method Details

ExecuteOnLayoutUpdated() public static method

public static ExecuteOnLayoutUpdated ( global::Xamarin.Forms.VisualElement element, EventHandler handler ) : void
element global::Xamarin.Forms.VisualElement
handler EventHandler
return void

ExecuteOnLayoutUpdated() public static method

Executes the handler the next time the elements's LayoutUpdated event fires.
public static ExecuteOnLayoutUpdated ( global::Xamarin.Forms.VisualElement element, EventHandler handler ) : void
element global::Xamarin.Forms.VisualElement The element.
handler EventHandler The handler.
return void

ExecuteOnLoad() public static method

Executes the handler immediately if the element is loaded, otherwise wires it to the Loaded event.
public static ExecuteOnLoad ( global::Xamarin.Forms.VisualElement element, RoutedEventHandler handler ) : bool
element global::Xamarin.Forms.VisualElement The element.
handler RoutedEventHandler The handler.
return bool

ExecuteOnUnload() public static method

Executes the handler when the element is unloaded.
public static ExecuteOnUnload ( global::Xamarin.Forms.VisualElement element, RoutedEventHandler handler ) : void
element global::Xamarin.Forms.VisualElement The element.
handler RoutedEventHandler The handler.
return void

GetApplyConventions() public static method

Gets the convention application behavior.
public static GetApplyConventions ( global::Xamarin.Forms.BindableObject d ) : bool?
d global::Xamarin.Forms.BindableObject The element the property is attached to.
return bool?

GetContext() public static method

Gets the context.
public static GetContext ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element the context is attached to.
return object

GetModel() public static method

Gets the model.
public static GetModel ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element the model is attached to.
return object

IsElementLoaded() public static method

Determines whether the specified element is loaded.
public static IsElementLoaded ( global::Xamarin.Forms.VisualElement element ) : bool
element global::Xamarin.Forms.VisualElement The element.
return bool

SetApplyConventions() public static method

Sets the convention application behavior.
public static SetApplyConventions ( global::Xamarin.Forms.BindableObject d, bool value ) : void
d global::Xamarin.Forms.BindableObject The element to attach the property to.
value bool Whether or not to apply conventions.
return void

SetContext() public static method

Sets the context.
public static SetContext ( global::Xamarin.Forms.BindableObject d, object value ) : void
d global::Xamarin.Forms.BindableObject The element to attach the context to.
value object The context.
return void

SetModel() public static method

Sets the model.
public static SetModel ( global::Xamarin.Forms.BindableObject d, object value ) : void
d global::Xamarin.Forms.BindableObject The element to attach the model to.
value object The model.
return void

Property Details

ApplyConventionsProperty public static property

A dependency property which allows the override of convention application behavior.
public static BindableProperty,global::Xamarin.Forms ApplyConventionsProperty
return global::Xamarin.Forms.BindableProperty

ContextProperty public static property

A dependency property for assigning a context to a particular portion of the UI.
public static BindableProperty,global::Xamarin.Forms ContextProperty
return global::Xamarin.Forms.BindableProperty

GetFirstNonGeneratedView public static property

Used to retrieve the root, non-framework-created view.
In certain instances the services create UI elements. For example, if you ask the window manager to show a UserControl as a dialog, it creates a window to host the UserControl in. The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer. Calling GetFirstNonGeneratedView allows the framework to discover what the original element was.
public static Func GetFirstNonGeneratedView
return object>.Func

IsGeneratedProperty public static property

Used by the framework to indicate that this element was generated.
public static BindableProperty,global::Xamarin.Forms IsGeneratedProperty
return global::Xamarin.Forms.BindableProperty

IsLoadedProperty public static property

A dependency property which allows the framework to track whether a certain element has already been loaded in certain scenarios.
public static BindableProperty,global::Xamarin.Forms IsLoadedProperty
return global::Xamarin.Forms.BindableProperty

IsScopeRootProperty public static property

A dependency property which marks an element as a name scope root.
public static BindableProperty,global::Xamarin.Forms IsScopeRootProperty
return global::Xamarin.Forms.BindableProperty

ModelProperty public static property

A dependency property for attaching a model to the UI.
public static BindableProperty,global::Xamarin.Forms ModelProperty
return global::Xamarin.Forms.BindableProperty