C# Class Zetbox.Client.WPF.Toolkit.VisualTypeTemplateSelector

A DataTemplateSelector to choose the appropriate view for a specified ViewModel.
Inheritance: System.Windows.Controls.DataTemplateSelector
Mostra file Open project: daszat/zetbox

Public Properties

Property Type Description
RequestedKindProperty DependencyProperty
UseLabeledViewProperty DependencyProperty

Public Methods

Method Description
GetRequestedKind ( DependencyObject obj ) : object
GetUseLabeledView ( DependencyObject obj ) : bool
SelectTemplate ( object item, DependencyObject container ) : DataTemplate
SetRequestedKind ( DependencyObject obj, object value ) : void
SetUseLabeledView ( DependencyObject obj, bool value ) : void
VisualTypeTemplateSelector ( object requestedKind, IFrozenContext frozenCtx ) : System

Initializes a new instance of the VisualTypeTemplateSelector class.

Private Methods

Method Description
CreateTemplate ( ViewDescriptor visualDesc ) : System.Windows.DataTemplate
GetEmptyTemplate ( DependencyObject container ) : DataTemplate
GetLabeledViewTemplate ( DependencyObject container ) : DataTemplate
GetNullTemplate ( DependencyObject container ) : DataTemplate
SelectDefaultTemplate ( ViewModel mdl, IFrozenContext frozenCtx ) : DataTemplate
SelectTemplate ( ViewModel mdl, ControlKind controlKind, IFrozenContext frozenCtx ) : DataTemplate
SelectTemplate ( ViewModel mdl, string controlKindName, IFrozenContext frozenCtx ) : DataTemplate

Method Details

GetRequestedKind() public static method

public static GetRequestedKind ( DependencyObject obj ) : object
obj DependencyObject
return object

GetUseLabeledView() public static method

public static GetUseLabeledView ( DependencyObject obj ) : bool
obj DependencyObject
return bool

SelectTemplate() public method

public SelectTemplate ( object item, DependencyObject container ) : DataTemplate
item object
container DependencyObject
return DataTemplate

SetRequestedKind() public static method

public static SetRequestedKind ( DependencyObject obj, object value ) : void
obj DependencyObject
value object
return void

SetUseLabeledView() public static method

public static SetUseLabeledView ( DependencyObject obj, bool value ) : void
obj DependencyObject
value bool
return void

VisualTypeTemplateSelector() public method

Initializes a new instance of the VisualTypeTemplateSelector class.
public VisualTypeTemplateSelector ( object requestedKind, IFrozenContext frozenCtx ) : System
requestedKind object
frozenCtx IFrozenContext
return System

Property Details

RequestedKindProperty public_oe static_oe property

public static DependencyProperty RequestedKindProperty
return DependencyProperty

UseLabeledViewProperty public_oe static_oe property

public static DependencyProperty UseLabeledViewProperty
return DependencyProperty