76 lines
3.5 KiB
XML
76 lines
3.5 KiB
XML
<UserControl x:Class="BOB.Views.Dialogs.WS_68030_380TView"
|
|
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:BOB.Views.Dialogs"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
mc:Ignorable="d"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Background="White"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
Height="850"
|
|
Width="900">
|
|
<prism:Dialog.WindowStyle>
|
|
<Style BasedOn="{StaticResource DialogUserManageStyle}"
|
|
TargetType="Window" />
|
|
</prism:Dialog.WindowStyle>
|
|
<GroupBox Header="AC载手动设置"
|
|
Padding="0,0,0,0"
|
|
MouseLeftButtonDown="MouseLeftButtonDown">
|
|
<Grid >
|
|
<TreeView Margin="10">
|
|
<TreeViewItem Header="连接状态设置">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="连接"
|
|
Margin="5"
|
|
Command="{Binding ConnectCommand}" />
|
|
<Button Content="断开"
|
|
Margin="5"
|
|
Command="{Binding DisconnectCommand}" />
|
|
</StackPanel>
|
|
</TreeViewItem>
|
|
|
|
<TreeViewItem Header="上下载设置">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="加载"
|
|
Margin="5"
|
|
Command="{Binding LoadCommand}" />
|
|
<Button Content="卸载"
|
|
Margin="5"
|
|
Command="{Binding UnloadCommand}" />
|
|
</StackPanel>
|
|
</TreeViewItem>
|
|
|
|
<TreeViewItem Header="功率设置">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="读取功率"
|
|
Margin="5"
|
|
Command="{Binding ReadPowerCommand}" />
|
|
<Button Content="设置功率"
|
|
Margin="5"
|
|
Command="{Binding SetPowerCommand}" />
|
|
<Label Content="功率"
|
|
Margin="5"
|
|
VerticalContentAlignment="Center" />
|
|
<TextBox Text="{Binding CurrentPowerDisplay}"
|
|
MinWidth="100"
|
|
Margin="5"
|
|
materialDesign:HintAssist.Hint=""
|
|
VerticalContentAlignment="Center" />
|
|
</StackPanel>
|
|
</TreeViewItem>
|
|
</TreeView>
|
|
<StackPanel Grid.Row="2"
|
|
VerticalAlignment="Bottom">
|
|
<Button Content="关闭"
|
|
Width="70"
|
|
Margin="10"
|
|
HorizontalAlignment="Right"
|
|
Command="{Binding CloseCommand}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</UserControl>
|