|
<UserControl x:Class="DockingLibrary.DockManager"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DockingLibrary" Unloaded="OnUnloaded" PreviewMouseDown="OnMouseDown" PreviewMouseMove="OnMouseMove" PreviewMouseUp="OnMouseUp">
<UserControl.Resources>
<Style x:Key="DockLeftButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="4,4,0,0" BorderThickness="1" BorderBrush="Gray">
<Border.LayoutTransform>
<RotateTransform Angle="90"/>
</Border.LayoutTransform>
<Border.Background>
<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.GradientActiveCaptionColorKey}}"/>
</Border.Background>
<ContentPresenter Content="{TemplateBinding Content}" Margin="2,2,2,2"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DockTopButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="0,0,4,4" BorderThickness="1" BorderBrush="Gray">
<!--<Border.LayoutTransform>
<RotateTransform Angle="90"/>
</Border.LayoutTransform>-->
<Border.Background>
<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.GradientActiveCaptionColorKey}}"/>
</Border.Background>
<ContentPresenter Content="{TemplateBinding Content}" Margin="2,2,2,2"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Name="btnPanelLeft" Grid.Column="0" Grid.Row="1" Orientation="Vertical">
</StackPanel>
<StackPanel Name="btnPanelRight" Grid.Column="2" Grid.Row="1" Orientation="Vertical">
</StackPanel>
<StackPanel Name="btnPanelTop" Grid.Column="1" Grid.Row="0" Orientation="Horizontal">
</StackPanel>
<StackPanel Name="btnPanelBottom" Grid.Column="1" Grid.Row="2" Orientation="Horizontal">
</StackPanel>
<Grid Grid.Column="1" Grid.Row="1" >
<local:DockingGrid x:Name="gridDocking" MouseEnter="OnHideAutoHidePane"/>
<DockPanel Name="panelFront" Opacity="0" LastChildFill="False" />
</Grid>
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I bought my first computer in Nov 1991, 21st and I started programming with QBasic under MSDOS.
Today my main interest is developping applications with .NET and HTML5 stack.