Hello.
I've created simple style for my RadPane.
I'm setting there also DataTemplate of TitleTemplate.
I've got problem to acces programatically the element in this DataTemplate from the class on which this style is applied.
For example I'd like to acces somehow the "PART_ParentControls" element in the following simple style.
Can you please, help ?
I would really appreciate that.
Thanks a lot.
Stefan.
<Style x:Key="TelerikRadPaneStyle" TargetType="{x:Type telDockingControls:RadPane}"> |
<Setter Property="CanUserPin" Value="False" /> |
<Setter Property="CanFloat" Value="True" /> |
<Setter Property="CanUserClose" Value="False" /> |
<Setter Property="ContextMenuTemplate"> |
<Setter.Value> |
<DataTemplate> |
<telNavigationControls:RadContextMenu Visibility="Collapsed" /> |
</DataTemplate> |
</Setter.Value> |
</Setter> |
<Setter Property="TitleTemplate"> |
<Setter.Value> |
<DataTemplate > |
<Grid > |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="*" /> |
</Grid.ColumnDefinitions> |
<Grid Grid.Column="0" x:Name="PART_ParentControls" /> |
</Grid> |
</DataTemplate> |
</Setter.Value> |
</Setter> |
</Style> |