GridViewImageColumn imgCol = new GridViewImageColumn(); |
imgCol.ImageStretch = System.Windows.Media.Stretch.None; |
imgCol.ImageWidth = 16; |
imgCol.ImageHeight = 16; |
imgCol.DataMemberBinding = binding; |
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> |