| | |
| | | HorizontalContentAlignment="Stretch" |
| | | SizeChanged="UserControl_SizeChanged" |
| | | MouseLeftButtonDown="Grid_MouseLeftButtonDown" |
| | | Background="#FFF" > |
| | | Background="#FFF" |
| | | Focusable="True"> |
| | | <UserControl.Resources> |
| | | <ResourceDictionary> |
| | | <ResourceDictionary.MergedDictionaries> |
| | |
| | | |
| | | <UserControl.Template> |
| | | <ControlTemplate TargetType="UserControl"> |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="30"/> |
| | | <RowDefinition Height="*"/> |
| | | </Grid.RowDefinitions> |
| | | <AdornerDecorator HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
| | | <Grid GotFocus="Grid_GotFocus"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="30"/> |
| | | <RowDefinition Height="*"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <Grid> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="*"/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | </Grid.ColumnDefinitions> |
| | | <Grid> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="*"/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | </Grid.ColumnDefinitions> |
| | | |
| | | <Thumb Style="{StaticResource SliderThumbStyle}" Grid.Column="0" x:Name="thumb1" DragDelta="DragDelta" |
| | | <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}" Click="Min_Click"></Button> |
| | | <Button Style="{StaticResource ChildWindowButton}" Click="Max_Click" ></Button> |
| | | <Button Style="{StaticResource ChildWindowCloseButton}" Click="CLose_Click"></Button> |
| | | </StackPanel> |
| | | </Grid> |
| | | <StackPanel Grid.Column="1" Orientation="Horizontal"> |
| | | <Button Style="{StaticResource ChildWindowButton}" Click="Min_Click"></Button> |
| | | <Button Style="{StaticResource ChildWindowButton}" Click="Max_Click" ></Button> |
| | | <Button Style="{StaticResource ChildWindowCloseButton}" Click="CLose_Click"></Button> |
| | | </StackPanel> |
| | | </Grid> |
| | | |
| | | <Border Grid.Row="1" VerticalAlignment="Stretch" BorderThickness="2,0,2,2" BorderBrush="{Binding HeaderBackground}"> |
| | | <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></ContentPresenter> |
| | | </Border> |
| | | </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> |