Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- <Window
- x:Class="BPASmartClient.Academy.View.DeviceControlView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cs="clr-namespace:BPASmartClient.CustomResource;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.Academy.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel" Width="400" Height="250"
- d:Visibility="Visible" AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True" Visibility="Collapsed" WindowStartupLocation="CenterScreen" WindowStyle="None"
- mc:Ignorable="d">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Recdictionarys/GlobalStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <!--<UserControl.DataContext>
- <vm:DeviceControlViewModel />
- </UserControl.DataContext>-->
- <Border
- Name="br" Background="#FF0B2F5F" BorderBrush="#0CADF5" BorderThickness="0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
-
- <!--#region 窗体标题-->
- <TextBlock
- Grid.Row="0" Grid.Column="0" FontSize="28" Text="阀门/电机控制" />
- <Button
- Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"
- Click="Button_Click" Content="关闭窗体" FontSize="28"
- Style="{StaticResource ControlButtonStyle}" />
- <!--#endregion-->
-
- <!--#region 阀门名称-->
- <TextBlock
- Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
- d:Text="反应釜旁通阀控制" FontSize="32"
- Text="{Binding ValveName}"
- TextAlignment="Center" />
- <!--#endregion-->
-
- <!--#region 指令状态显示-->
- <TextBlock
- Grid.Row="2" Grid.Column="0" FontSize="28" Text="当前指令状态:" />
- <TextBlock
- Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
- d:Text="打开" FontSize="28"
- Text="{Binding CommandState}" />
- <!--#endregion-->
-
- <!--#region 设备状态显示-->
- <TextBlock
- Grid.Row="3" Grid.Column="0" FontSize="28" Text="当前设备状态:" />
- <TextBlock
- Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
- d:Text="关闭" FontSize="28"
- Text="{Binding DeviceState}" />
- <!--#endregion-->
-
- <!--#region 按钮-->
- <Button
- Grid.Row="4"
- Command="{Binding OpenCommand}"
- Content="打开" FontSize="32"
- Style="{StaticResource OKImageButtonStyle}" />
- <Button
- Grid.Row="4" Grid.Column="1"
- Command="{Binding CloseCommand}"
- Content="关闭" FontSize="32"
- Style="{StaticResource CancelImageButtonStyle}" />
- <!--#endregion-->
- </Grid>
- </Border>
-
- </Window>
|