Class ParameterTemplateSelector
Template selector for displaying controls in the settings window.
Inheritance
Inherited Members
Namespace: Phoenix.Controls
Assembly: Phoenix.Controls.ParameterEditor.dll
Syntax
public class ParameterTemplateSelector : DataTemplateSelector
Properties
View SourceComboBoxTemplate
Gets or sets the DataTemplate for a combo box.
Declaration
public DataTemplate ComboBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
DecimalTemplate
Gets or sets the DataTemplate for a decimal slider.
Declaration
public DataTemplate DecimalTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
FilePathTemplate
Gets or sets the DataTemplate for a text box with a file selector button.
Declaration
public DataTemplate FilePathTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
FlagTemplate
Gets or sets the DataTemplate for a check box control.
Declaration
public DataTemplate FlagTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
FolderPathTemplate
Gets or sets the DataTemplate for a text box with a folder selector button.
Declaration
public DataTemplate FolderPathTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
IntegerTemplate
Gets or sets the DataTemplate for a integer slider.
Declaration
public DataTemplate IntegerTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
MultiLineTextTemplate
Gets or sets the DataTemplate for a text box control allowing multiple line entry.
Declaration
public DataTemplate MultiLineTextTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
MultiSelectListBoxTemplate
Gets or sets the DataTemplate for a list box allowing multiple selection.
Declaration
public DataTemplate MultiSelectListBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
NoneTemplate
Gets or sets the DataTemplate for a combo box control.
Declaration
public DataTemplate NoneTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
PasswordBoxTemplate
Gets or sets the DataTemplate for a password box control.
Declaration
public DataTemplate PasswordBoxTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
TextTemplate
Gets or sets the DataTemplate for a text box control.
Declaration
public DataTemplate TextTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate |
Methods
View SourceSelectTemplate(Object, DependencyObject)
Using the ParameterInfo'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. |