Show / Hide Table of Contents

Class ParameterTemplateSelector

Template selector for displaying controls in the settings window.

Inheritance
System.Object
System.Windows.Controls.DataTemplateSelector
ParameterTemplateSelector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Controls
Assembly: Phoenix.Controls.ParameterEditor.dll
Syntax
public class ParameterTemplateSelector : DataTemplateSelector

Properties

View Source

ComboBoxTemplate

Gets or sets the DataTemplate for a combo box.

Declaration
public DataTemplate ComboBoxTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

DecimalTemplate

Gets or sets the DataTemplate for a decimal slider.

Declaration
public DataTemplate DecimalTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

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
View Source

FlagTemplate

Gets or sets the DataTemplate for a check box control.

Declaration
public DataTemplate FlagTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

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
View Source

IntegerTemplate

Gets or sets the DataTemplate for a integer slider.

Declaration
public DataTemplate IntegerTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

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
View Source

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
View Source

NoneTemplate

Gets or sets the DataTemplate for a combo box control.

Declaration
public DataTemplate NoneTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

PasswordBoxTemplate

Gets or sets the DataTemplate for a password box control.

Declaration
public DataTemplate PasswordBoxTemplate { get; set; }
Property Value
Type Description
System.Windows.DataTemplate
View Source

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 Source

SelectTemplate(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.

Overrides
System.Windows.Controls.DataTemplateSelector.SelectTemplate(System.Object, System.Windows.DependencyObject)
  • View Source
In This Article
Back to top Generated by DocFX