Hello, I have a RadTileView and wondered how to change the DataTemplate for the RadTilveView.ItemTemplate (header) based on the state or configuration of the RadTileView?
Example:
Is there something I can bind the ItemTemplate to to evaluate the state of the currently selected item?
Example:
<!-- TileView.HeaderTemplate -->
<
DataTemplate
x:Key
=
"MinimizedHeaderTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding PatientName}"
Width
=
"125"
Margin
=
"14,0,0,0"
/>
</
StackPanel
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"MaximizedHeaderTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding PatientName}"
Width
=
"125"
Margin
=
"14,0,0,0"
/>
<
TextBlock
Text
=
"{Binding Age}"
Width
=
"30"
Margin
=
"14,0,0,0"
/>
<
TextBlock
Text
=
"{Binding Protocol}"
Width
=
"100"
Margin
=
"14,0,0,0"
/>
<
TextBlock
Text
=
"{Binding Actions}"
Width
=
"65"
Margin
=
"14,0,0,0"
/>
<
TextBlock
Text
=
"{Binding RegTime}"
Width
=
"75"
Margin
=
"14,0,0,0"
/>
</
StackPanel
>
</
DataTemplate
>
Is there something I can bind the ItemTemplate to to evaluate the state of the currently selected item?