Class SettingTemplateSelector
Template selector for displaying controls in the settings window.
Inheritance
Inherited Members
Namespace: Phoenix.Settings
Assembly: Phoenix.Settings.dll
Syntax
public class SettingTemplateSelector : DataTemplateSelector
Properties
View SourceCheckBoxTemplate
Gets or sets the DataTemplate for a check box control.
Declaration
public DataTemplate CheckBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
ComboBoxEnumTemplate
Gets or sets the DataTemplate for a combo box control for enumerations.
Declaration
public DataTemplate ComboBoxEnumTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
ComboBoxTemplate
Gets or sets the DataTemplate for a combo box control.
Declaration
public DataTemplate ComboBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
FileSelectorTemplate
Gets or sets the DataTemplate for a text box with a file selector button.
Declaration
public DataTemplate FileSelectorTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
FolderSelectorTemplate
Gets or sets the DataTemplate for a text box with a folder selector button.
Declaration
public DataTemplate FolderSelectorTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
ListBoxTemplate
Gets or sets the DataTemplate for a list box control.
Declaration
public DataTemplate ListBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
SliderTemplate
Gets or sets the DataTemplate for a slider control.
Declaration
public DataTemplate SliderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
SliderTicksTemplate
Gets or sets the DataTemplate for a slider control with predefined ticks.
Declaration
public DataTemplate SliderTicksTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
TextBoxTemplate
Gets or sets the DataTemplate for a text box control.
Declaration
public DataTemplate TextBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
Methods
View SourceSelectTemplate(Object, DependencyObject)
Using the SettingInfo's property type and allowed values type, determine the type of control to display.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item that needs to be displayed. |
System.Windows.DependencyObject | container | The container to display the item in. |
Returns
Type | Description |
---|---|
System.Windows.DataTemplate | The DataTemplate to be used for displaying the item. |