I have two Docked windows on the Left and Right side of my GUI
(Similar
to Visual Studio: Solution Explorer on the Left, Properties on the
Right). I want to do the following
1. If I auto-hide the window on the left, it should auto-hide the
window on the Right as well (and vice-versa)
2. If I dock the window on the left, it should dock the window on
the right as well (and vice-versa)
3. If the windows are in Auto-Hide mode, and if the user clicks on
the auto-hide window on left, the auto-hide window on the right should
also expand, and when lost focus. Both should hide at the same time.
Can you tell how can I do this? If possible can you point to some sample code that accomplishes this?
Also is there a event that is fired, when a pane is docked or pinned?
<telerik:GridViewDataColumn Header="Jahr" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:yyyy}" /> |
<telerik:GridViewDataColumn Header="Monat" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:MMM}" /> |
<telerik:GridViewDataColumn Header="Tag" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:dd}" /> |
<telerik:ThicknessExpressionConverter x:Key="ThicknessConverter" /> |
<Style x:Key="TriangleNeedleTemplate" TargetType="{x:Type telerik:Needle}"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="{x:Type telerik:Needle}"> |
<Grid Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="{TemplateBinding ActualHeight}"/> |
<ColumnDefinition Width="*" /> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="{TemplateBinding ActualHeight}" /> |
</Grid.RowDefinitions> |
<Border Background="Red" /> |
<Polygon Grid.ColumnSpan="2" Points="0,0 1,0.5 0,1 0,0" Stretch="Fill" |
Fill="White" /> |
</Grid> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight} |
<Style x:Key="TriangleNeedleTemplate" TargetType="{x:Type telerik:Needle}"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="{x:Type telerik:Needle}"> |
<Grid Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}"/> |
<ColumnDefinition Width="*" /> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" /> |
</Grid.RowDefinitions> |
<Border Background="Red" /> |
<Polygon Grid.ColumnSpan="2" Points="0,0 1,0.5 0,1 0,0" Stretch="Fill" |
Fill="White" /> |
</Grid> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
<Grid x:Name="PART_Grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="*" /> |
<!-- Column 0 - tail --> |
<ColumnDefinition Width="*" /> |
<!-- Column 1 - pin point --> |
<ColumnDefinition Width="*" /> |
<!-- Column 2 - arrow --> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="*" /> |
</Grid.RowDefinitions> |
<Window x:Class="WpfApplication28.MainWindow" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
Title="MainWindow" Height="350" Width="525" Background="Gray"> |
<Grid> |
<Grid.Resources> |
<ControlTemplate x:Key="Tubo"> |
<telerik:RadialGauge Width="150" Height="150"> |
<telerik:RadialScale Name="radialScale" StartAngle="135" SweepAngle="270" Radius=".95" |
MajorTicks="5" MinorTicks="1" MiddleTicks="1" LabelRotationMode="None"> |
<telerik:RadialScale.Label> |
<telerik:LabelProperties Location="Inside" FontSize="20" Foreground="Red" /> |
</telerik:RadialScale.Label> |
</telerik:RadialScale> |
</telerik:RadialGauge> |
</ControlTemplate> |
<Style TargetType="{x:Type Control}"> |
<Setter Property="Template" Value="{StaticResource Tubo}"> |
</Setter> |
</Style> |
</Grid.Resources> |
<Grid.RowDefinitions> |
<RowDefinition /> |
<RowDefinition /> |
</Grid.RowDefinitions> |
<Control /> |
<telerik:RadialGauge Grid.Row="1"> |
<telerik:RadialScale Name="radialScale" StartAngle="135" SweepAngle="270" Radius=".95" |
MajorTicks="5" MinorTicks="1" MiddleTicks="1" LabelRotationMode="None"> |
<telerik:RadialScale.Label> |
<telerik:LabelProperties Location="Inside" FontSize="20" Foreground="Red" /> |
</telerik:RadialScale.Label> |
</telerik:RadialScale> |
</telerik:RadialGauge> |
</Grid> |
</Window> |