Hello.
I have trouble to programatically acces element in TitleTemplate of RadPane.
I have this following style applied to my RadPane, where is also specified the DataTemplate of TitleTemplate.
For example I would like to acces the "PART_ParentControls" element. Can you please help me ?
Thanks a lot.
Here is the style xaml:
<Style x:Key="TelerikRadPaneStyle1" 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 x:Name="mainGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Border BorderThickness="1" BorderBrush="Black" Margin="0,5,2,5" >
<Canvas Grid.Column="0" Background="White" Opacity="1" IsHitTestVisible="True" ToolTip="Drag to move the window" />
</Border>
<breadCrumbBar:BreadcrumbBar x:Name="bar" Grid.Column="1" Margin="1" Path="News"
TraceBinding="{Binding XPath=@title}" BorderBrush="{x:Null}"
Root="{StaticResource dataProvider}" Background="Transparent"
>
<breadCrumbBar:BreadcrumbBar.PreButtons>
<Button>
<Image Style="{StaticResource Backward}" Opacity="0.8" Width="16" Height="16"/>
</Button>
<Button>
<Image Style="{StaticResource Forward}" Opacity="0.8" Width="16" Height="16"/>
</Button>
</breadCrumbBar:BreadcrumbBar.PreButtons>
<breadCrumbBar:BreadcrumbBar.Buttons>
<Button>
<Image Style="{StaticResource Close}" Opacity="0.5" Width="16" Height="16" HorizontalAlignment="Right"/>
</Button>
</breadCrumbBar:BreadcrumbBar.Buttons>
</breadCrumbBar:BreadcrumbBar>
<Grid Grid.Column="2" x:Name="PART_ParentControls" />
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
I have trouble to programatically acces element in TitleTemplate of RadPane.
I have this following style applied to my RadPane, where is also specified the DataTemplate of TitleTemplate.
For example I would like to acces the "PART_ParentControls" element. Can you please help me ?
Thanks a lot.
Here is the style xaml:
<Style x:Key="TelerikRadPaneStyle1" 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 x:Name="mainGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Border BorderThickness="1" BorderBrush="Black" Margin="0,5,2,5" >
<Canvas Grid.Column="0" Background="White" Opacity="1" IsHitTestVisible="True" ToolTip="Drag to move the window" />
</Border>
<breadCrumbBar:BreadcrumbBar x:Name="bar" Grid.Column="1" Margin="1" Path="News"
TraceBinding="{Binding XPath=@title}" BorderBrush="{x:Null}"
Root="{StaticResource dataProvider}" Background="Transparent"
>
<breadCrumbBar:BreadcrumbBar.PreButtons>
<Button>
<Image Style="{StaticResource Backward}" Opacity="0.8" Width="16" Height="16"/>
</Button>
<Button>
<Image Style="{StaticResource Forward}" Opacity="0.8" Width="16" Height="16"/>
</Button>
</breadCrumbBar:BreadcrumbBar.PreButtons>
<breadCrumbBar:BreadcrumbBar.Buttons>
<Button>
<Image Style="{StaticResource Close}" Opacity="0.5" Width="16" Height="16" HorizontalAlignment="Right"/>
</Button>
</breadCrumbBar:BreadcrumbBar.Buttons>
</breadCrumbBar:BreadcrumbBar>
<Grid Grid.Column="2" x:Name="PART_ParentControls" />
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>