189 lines
9.9 KiB
XML
189 lines
9.9 KiB
XML
<mah:MetroWindow x:Class="ProcessManager.MainWindow"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
xmlns:local="clr-namespace:ProcessManager"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="600" Width="1000">
|
|
<materialDesign:DialogHost x:Name="MainDialogHost">
|
|
<UniformGrid Columns="3"
|
|
Margin="16"
|
|
HorizontalAlignment="Center"
|
|
Cursor="">
|
|
<materialDesign:Card Width="220"
|
|
Margin="5"
|
|
Padding="8"
|
|
Height="230"
|
|
Background="DarkSlateGray"
|
|
Foreground="white"
|
|
Cursor="">
|
|
<StackPanel>
|
|
<TextBlock Margin="16,16,12,8"
|
|
FontSize="16"
|
|
Text="设备1" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流负载WS-68030-380T"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流电源SQ0030G1D"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="高压电流双向源PSB11000"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源IT6724C"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源IT6724C"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流负载EAEL9080"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<RadioButton Margin="16,4,16,0"
|
|
Content="自动启动"
|
|
Style="{StaticResource MaterialDesignUserForegroundRadioButton}" />
|
|
<Separator Style="{StaticResource MaterialDesignLightSeparator}" />
|
|
|
|
</StackPanel>
|
|
<materialDesign:Card.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="编辑"
|
|
Command="{Binding EditCommand}"
|
|
CommandParameter="设备1" />
|
|
<MenuItem Header="启动"
|
|
Command="{Binding StartCommand}"
|
|
CommandParameter="设备1" />
|
|
</ContextMenu>
|
|
</materialDesign:Card.ContextMenu>
|
|
</materialDesign:Card>
|
|
<materialDesign:Card Width="220"
|
|
Margin="5"
|
|
Height="230"
|
|
Padding="8"
|
|
Background="#1976D2"
|
|
Foreground="white">
|
|
<StackPanel>
|
|
<TextBlock Margin="16,16,12,8"
|
|
FontSize="16"
|
|
Text="设备2" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流负载WS-68030-380T"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流电源SQ0030G1D"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="高压电流双向源PSB11000"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源IT6724C"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源IT6724C"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流负载EAEL9080"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<RadioButton Margin="16,4,16,0"
|
|
Content="自动启动"
|
|
Style="{StaticResource MaterialDesignUserForegroundRadioButton}" />
|
|
<Separator Style="{StaticResource MaterialDesignLightSeparator}" />
|
|
|
|
</StackPanel>
|
|
<materialDesign:Card.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="编辑"
|
|
Command="{Binding EditCommand}"
|
|
CommandParameter="设备2" />
|
|
<MenuItem Header="启动"
|
|
Command="{Binding StartCommand}"
|
|
CommandParameter="设备2" />
|
|
</ContextMenu>
|
|
</materialDesign:Card.ContextMenu>
|
|
</materialDesign:Card>
|
|
<materialDesign:Card Margin="5"
|
|
Width="220"
|
|
Height="230"
|
|
Padding="8"
|
|
Background="#FF9800"
|
|
Foreground="White">
|
|
<StackPanel Cursor="">
|
|
<TextBlock Margin="16,16,12,8"
|
|
FontSize="16"
|
|
Text="设备3" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流负载WS-68030-380T"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="交流电源SQ0030G1D"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="高压电流双向源PSB11000"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源E36233A"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流电源E36233A"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="低压直流负载EAEL9080"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<RadioButton Margin="16,4,16,0"
|
|
Content="自动启动"
|
|
Style="{StaticResource MaterialDesignUserForegroundRadioButton}" />
|
|
<Separator Style="{StaticResource MaterialDesignLightSeparator}" />
|
|
|
|
</StackPanel>
|
|
<materialDesign:Card.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="编辑"
|
|
Command="{Binding EditCommand}"
|
|
CommandParameter="设备3" />
|
|
<MenuItem Header="启动"
|
|
Command="{Binding StartCommand}"
|
|
CommandParameter="设备3" />
|
|
</ContextMenu>
|
|
</materialDesign:Card.ContextMenu>
|
|
</materialDesign:Card>
|
|
<materialDesign:Card Margin="5" Width="220"
|
|
Padding="8"
|
|
Height="140"
|
|
Background="#00BCD4"
|
|
Foreground="White">
|
|
<StackPanel Cursor="">
|
|
<TextBlock Margin="16,16,12,8"
|
|
FontSize="16"
|
|
Text="水冷机和环境箱" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="水冷机LQ7500-D"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<CheckBox Margin="16,4,16,0"
|
|
Content="环境箱ZXKS"
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}" />
|
|
<RadioButton Margin="16,4,16,0"
|
|
Content="自动启动"
|
|
Style="{StaticResource MaterialDesignUserForegroundRadioButton}" />
|
|
<Separator Style="{StaticResource MaterialDesignLightSeparator}" />
|
|
|
|
</StackPanel>
|
|
<materialDesign:Card.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="编辑"
|
|
Command="{Binding EditCommand}"
|
|
CommandParameter="水冷机和环境箱" />
|
|
<MenuItem Header="启动"
|
|
Command="{Binding StartCommand}"
|
|
CommandParameter="水冷机和环境箱" />
|
|
</ContextMenu>
|
|
</materialDesign:Card.ContextMenu>
|
|
</materialDesign:Card>
|
|
|
|
</UniformGrid>
|
|
</materialDesign:DialogHost>
|
|
</mah:MetroWindow>
|