103 lines
6.3 KiB
XML
103 lines
6.3 KiB
XML
<UserControl x:Class="JiangsuEarthquake.Views.UserControls.OtherSettingView"
|
|
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:JiangsuEarthquake.Views.UserControls"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
mc:Ignorable="d"
|
|
Background="{DynamicResource RegionBrush}"
|
|
FontFamily="{StaticResource DigitalDisplay}"
|
|
Height="240" Width="250">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="4*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="其 他 设 置" FontSize="20" Foreground="White" Background="Transparent"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<hc:Divider VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,4"
|
|
Width="400"/>
|
|
<Button Width="22" Height="22" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource PrimaryBrush}"
|
|
hc:IconElement.Geometry="{StaticResource ErrorGeometry}" Padding="0" HorizontalAlignment="Right"
|
|
VerticalAlignment="Center" Margin="0,0,10,2" Command="hc:ControlCommands.Close"/>
|
|
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<!--<ColumnDefinition/>-->
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<GroupBox Grid.Column="0" Header="继电控制" Margin="10">
|
|
<Border Background="Transparent" CornerRadius="4">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
Width="20" Height="20" CornerRadius="10" Margin="8,0"
|
|
Background="Red"/>
|
|
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,0,0,0">
|
|
<Button Name="RelayActivationBtn" Foreground="White" Background="Transparent" BorderBrush="White"
|
|
VerticalAlignment="Center" HorizontalAlignment="Center" BorderThickness="1" Width="150"
|
|
Height="38" Style="{StaticResource ButtonStyle}"
|
|
Command="{Binding RelayActivationCommand}"
|
|
IsEnabled="{Binding RelayActivationBtnIsEnabled}">
|
|
<Button.Content>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="/Assets/Images/Open.png" Width="18"/>
|
|
<TextBlock Text="继电开启" Foreground="White" FontSize="16" Margin="10,0"
|
|
VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Button.Content>
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="8"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
|
|
<TextBlock Name="RelayControlMsg" Text="{Binding RelayControlMsg}" Background="Transparent"
|
|
Foreground="{Binding RelayControlMsgForeground}" FontSize="12" Margin="0,5,0,0"
|
|
HorizontalAlignment="Right" Visibility="{Binding RelayControlMsgVisibility}"/>
|
|
|
|
<Border Background="Transparent" CornerRadius="4" Margin=" 0,5,0,0">
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Button Name="RelayShutdownBtn" Foreground="White" Background="Transparent" BorderBrush="White"
|
|
VerticalAlignment="Center" HorizontalAlignment="Center" BorderThickness="1" Width="150"
|
|
Height="38" Style="{StaticResource ButtonStyle}"
|
|
Command="{Binding RelayShutdownCommand}"
|
|
IsEnabled="{Binding RelayShutdownBtnIsEnabled}">
|
|
<Button.Content>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="/Assets/Images/Close1.png" Width="18"/>
|
|
<TextBlock Text="继电关闭" Foreground="White" FontSize="16" Margin="10,0"
|
|
VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Button.Content>
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="8"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
</Border>
|
|
</GroupBox>
|
|
|
|
<!--<GroupBox Grid.Column="1" Header="设备信息修改" Margin="10">
|
|
<Border Background="Transparent" CornerRadius="4">
|
|
<TextBlock Text="This is the content" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White"/>
|
|
</Border>
|
|
</GroupBox>-->
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
</UserControl>
|