<UserControl x:Class="HMI.UI.MDI.InnerWindow"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:local="clr-namespace:HMI.UI.MDI"
|
mc:Ignorable="d"
|
HorizontalAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
MouseLeftButtonDown="Grid_MouseLeftButtonDown"
|
SizeChanged="UserControl_SizeChanged"
|
Background="#FFF"
|
Focusable="True">
|
<UserControl.Resources>
|
<ResourceDictionary>
|
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary Source="/HMI.UI;component/Style/WindowResources.xaml"/>
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style x:Key="SliderThumbStyle" TargetType="{x:Type Thumb}">
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate>
|
<Label VerticalContentAlignment="Center"
|
Foreground="{Binding HeaderFontColor}" Content="{Binding Title}"/>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
</ResourceDictionary>
|
</UserControl.Resources>
|
|
<UserControl.Template>
|
<ControlTemplate TargetType="local:InnerWindow">
|
<AdornerDecorator x:Name="PART_Adorner" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
|
<Grid GotFocus="Grid_GotFocus">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="30"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
|
<Grid Background="{DynamicResource ReVerBar}">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="Auto"/>
|
</Grid.ColumnDefinitions>
|
|
<Thumb Style="{StaticResource SliderThumbStyle}" Grid.Column="0" x:Name="thumb1" DragDelta="DragDelta"
|
DragStarted="DragStarted" DragCompleted="DragCompleted"/>
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
<Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Lock_Click"></Button>
|
<Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Min_Click"></Button>
|
<Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Max_Click" ></Button>
|
<!--<Button Style="{StaticResource ChildWindowCloseButton}" Background="Transparent" Click="CLose_Click"></Button>-->
|
</StackPanel>
|
</Grid>
|
|
<Border Grid.Row="1" Background="LightGray" VerticalAlignment="Stretch" BorderThickness="2,0,2,2" BorderBrush="{Binding HeaderBackground}">
|
<ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></ContentPresenter>
|
</Border>
|
</Grid>
|
</AdornerDecorator>
|
</ControlTemplate>
|
</UserControl.Template>
|
</UserControl>
|