141 lines
6.2 KiB
XML
141 lines
6.2 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.QuickMeterStepView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Width="1920"
|
|
Height="980"
|
|
mc:Ignorable="d">
|
|
<materialDesign:DrawerHost
|
|
x:Name="DrawerHost"
|
|
BorderBrush="{DynamicResource MaterialDesignDivider}"
|
|
BorderThickness="2"
|
|
BottomDrawerBackground="{DynamicResource SecondaryHueLightBrush}"
|
|
BottomDrawerCornerRadius="20 20 0 0">
|
|
<materialDesign:DrawerHost.Style>
|
|
<Style BasedOn="{StaticResource {x:Type materialDesign:DrawerHost}}" TargetType="materialDesign:DrawerHost">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsChecked, ElementName=BackgroundToggle}" Value="True">
|
|
<Setter Property="OverlayBackground" Value="{DynamicResource PrimaryHueMidBrush}" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</materialDesign:DrawerHost.Style>
|
|
<materialDesign:DrawerHost.LeftDrawerContent>
|
|
<StackPanel Width="200" Margin="10">
|
|
<TextBlock
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Text="操作信息" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
Content="操作1"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="操作2"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="操作3"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.LeftDrawerContent>
|
|
<materialDesign:DrawerHost.TopDrawerContent>
|
|
<StackPanel
|
|
Margin="16"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Text="TOP BANANA" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Top}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.TopDrawerContent>
|
|
<materialDesign:DrawerHost.RightDrawerContent>
|
|
<StackPanel Margin="16">
|
|
<TextBlock
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Text="THE RIGHT STUFF" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Right}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.RightDrawerContent>
|
|
<materialDesign:DrawerHost.BottomDrawerContent>
|
|
<StackPanel
|
|
Margin="16"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}"
|
|
Text="BOTTOM BRACKET" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Bottom}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.BottomDrawerContent>
|
|
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="280" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="160" />
|
|
<RowDefinition Height="200" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid>
|
|
</materialDesign:DrawerHost>
|
|
</UserControl>
|