Chooses a Data
- Inheritance:
-
object
Data
Template objectSelector
Constructors
ImageTemplateSelector()
Initializes an instance of the class.
Properties
AllowStringGeometry
Gets or sets if properly-formatted string
data can be parsed as a Geometry.
Property Value
- bool:
true
to allow properly-formattedstring
data to be parsed as a Geometry; otherwise,false
. The default value is defined by the static DefaultAllow property.String Geometry
Remarks
When true
, any string data that is not recognized as a Geometry may show a FormatException
in debugger output.
AllowStringUri
Gets or sets if properly-formatted string
data can be parsed as a System.Uri.
Property Value
- bool:
true
to allow properly-formattedstring
data to be parsed as a System.Uri; otherwise,false
. The default value is defined by the static DefaultAllow property.String Uri
DefaultAllowStringGeometry
Gets or sets the default value of Allow
Property Value
- bool:
The default value is
true
.
Remarks
Any change in the default value must be made before any resources are loaded that use this type of selector.
DefaultAllowStringUri
Gets or sets the default value of Allow
Property Value
- bool:
The default value is
true
.
Remarks
Any change in the default value must be made before any resources are loaded that use this type of selector.
DefaultTemplate
Gets or sets the default Datanull
data.
Property Value
- Data
Template : The default Data
Template to use fornull
data.
GeometryTemplate
Gets or sets the Data
Property Value
- Data
Template : The Data
Template to use for Geometry data.
ImageSourceTemplate
Gets or sets the Data
Property Value
- Data
Template : The Data
Template to use for ImageSource or System.Uri data.
Methods
ResolveStringDataTemplate(string, DependencyObject)
Gets the Datastring
data.
Parameter | Type | Description |
---|---|---|
data | string | The string data to examine. |
container | DependencyObject | The data-bound element. |
Returns
- Data
Template : The Data
Template to use, ornull
if a template is not defined.
SelectTemplate(object, DependencyObject)
Returns a Data
Parameter | Type | Description |
---|---|---|
item | object | The data object. |
container | DependencyObject | The data-bound element. |
Returns
- Data
Template : The Data
Template to use, ornull
if a template is not defined.