Hi,
I added a new command into PaneHeader & RadPane. It works perfectly. I try to add this command into the toolwindow control template. Here the code:
The button is visible but the command is disable. I try to force the OnOpenSettingsCanExecute to true without success. I test also the PaneHeaderMenuOpen command and this command is enable.
Do you have a solution?
Thanks for reply.
I added a new command into PaneHeader & RadPane. It works perfectly. I try to add this command into the toolwindow control template. Here the code:
<ControlTemplate x:Key="ToolWindowControlTemplate" TargetType="telerik:ToolWindow"> <Border x:Name="VisualRoot" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" MinHeight="22" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <!-- Here, the new command on TOOLWINDOW--> <StackPanel Grid.Column="1" Orientation="Horizontal"> <telerik:RadButton x:Name="SettingsAction" Command="local:RadDockingCommands.OpenSettingsCommand" BorderThickness="0" Height="20" Width="20" Background="Red" Content="Button" ToolTip="Open settings"> </telerik:RadButton> <telerik:RadButton x:Name="CloseButton" Command="telerik:WindowCommands.Close" Margin="0 0 4 0" Content="CLOSE THIS WINDOW" /> </StackPanel> <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Grid.Row="1" Grid.ColumnSpan="2" Content="{TemplateBinding Content}" /> </Grid> </Border> </ControlTemplate>The button is visible but the command is disable. I try to force the OnOpenSettingsCanExecute to true without success. I test also the PaneHeaderMenuOpen command and this command is enable.
Do you have a solution?
Thanks for reply.