C# 클래스 Yuhan.WPF.Helpers.DynamicTemplateSelector

Provides a means to specify DataTemplates to be selected from within WPF code
상속: System.Windows.Controls.DataTemplateSelector
파일 보기 프로젝트 열기: hansuky/Yuhan

공개 프로퍼티들

프로퍼티 타입 설명
TemplatesProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
GetTemplates ( UIElement element ) : Yuhan.WPF.Helpers.Template[]

Gets the value of the element's attached TemplatesProperty

SelectTemplate ( object item, System container ) : System.Windows.DataTemplate

Overriden base method to allow the selection of the correct DataTemplate

SetTemplates ( UIElement element, Template value ) : void

Sets the value of the element's attached TemplatesProperty

메소드 상세

GetTemplates() 공개 정적인 메소드

Gets the value of the element's attached TemplatesProperty
public static GetTemplates ( UIElement element ) : Yuhan.WPF.Helpers.Template[]
element UIElement The who's attached template's property you wish to retrieve
리턴 Yuhan.WPF.Helpers.Template[]

SelectTemplate() 공개 메소드

Overriden base method to allow the selection of the correct DataTemplate
public SelectTemplate ( object item, System container ) : System.Windows.DataTemplate
item object The item for which the template should be retrieved
container System The object containing the current item
리턴 System.Windows.DataTemplate

SetTemplates() 공개 정적인 메소드

Sets the value of the element's attached TemplatesProperty
public static SetTemplates ( UIElement element, Template value ) : void
element UIElement The for which the attached property's value will be set
value Template The array of objects to be used by the given
리턴 void

프로퍼티 상세

TemplatesProperty 공개적으로 정적으로 프로퍼티

Generic attached property specifying Templates used by the DynamicTemplateSelector
This attached property will allow you to set the templates you wish to be available whenever a control's TemplateSelector is set to an instance of DynamicTemplateSelector
public static DependencyProperty,System.Windows TemplatesProperty
리턴 System.Windows.DependencyProperty