C# Класс Caliburn.Micro.View

Hosts attached properties related to view models.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ExecuteOnLayoutUpdated() публичный статический Метод

public static ExecuteOnLayoutUpdated ( global::Xamarin.Forms.VisualElement element, EventHandler handler ) : void
element global::Xamarin.Forms.VisualElement
handler EventHandler
Результат void

ExecuteOnLayoutUpdated() публичный статический Метод

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.
Результат void

ExecuteOnLoad() публичный статический Метод

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.
Результат bool

ExecuteOnUnload() публичный статический Метод

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.
Результат void

GetApplyConventions() публичный статический Метод

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.
Результат bool?

GetContext() публичный статический Метод

Gets the context.
public static GetContext ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element the context is attached to.
Результат object

GetModel() публичный статический Метод

Gets the model.
public static GetModel ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element the model is attached to.
Результат object

IsElementLoaded() публичный статический Метод

Determines whether the specified element is loaded.
public static IsElementLoaded ( global::Xamarin.Forms.VisualElement element ) : bool
element global::Xamarin.Forms.VisualElement The element.
Результат bool

SetApplyConventions() публичный статический Метод

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.
Результат void

SetContext() публичный статический Метод

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.
Результат void

SetModel() публичный статический Метод

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.
Результат void

Описание свойств

ApplyConventionsProperty публичное статическое свойство

A dependency property which allows the override of convention application behavior.
public static BindableProperty,global::Xamarin.Forms ApplyConventionsProperty
Результат global::Xamarin.Forms.BindableProperty

ContextProperty публичное статическое свойство

A dependency property for assigning a context to a particular portion of the UI.
public static BindableProperty,global::Xamarin.Forms ContextProperty
Результат global::Xamarin.Forms.BindableProperty

GetFirstNonGeneratedView публичное статическое свойство

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
Результат object>.Func

IsGeneratedProperty публичное статическое свойство

Used by the framework to indicate that this element was generated.
public static BindableProperty,global::Xamarin.Forms IsGeneratedProperty
Результат global::Xamarin.Forms.BindableProperty

IsLoadedProperty публичное статическое свойство

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
Результат global::Xamarin.Forms.BindableProperty

IsScopeRootProperty публичное статическое свойство

A dependency property which marks an element as a name scope root.
public static BindableProperty,global::Xamarin.Forms IsScopeRootProperty
Результат global::Xamarin.Forms.BindableProperty

ModelProperty публичное статическое свойство

A dependency property for attaching a model to the UI.
public static BindableProperty,global::Xamarin.Forms ModelProperty
Результат global::Xamarin.Forms.BindableProperty