You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.5 KiB
54 lines
2.5 KiB
1 year ago
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||
|
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:controls="using:Material.Styles.Controls"
|
||
|
xmlns:assists="using:Material.Styles.Assists"
|
||
|
x:Class="JiLinApp.Pages.VibrateServer.Vibrate"
|
||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450">
|
||
|
<UserControl.Styles>
|
||
|
<Style Selector="#VibratePanel TextBox">
|
||
|
<Setter Property="Width" Value="200" />
|
||
|
<Setter Property="UseFloatingWatermark" Value="True"/>
|
||
|
</Style>
|
||
|
<Style Selector="#VibratePanel TextBlock[Name=PART_LabelText]">
|
||
|
<Setter Property="Foreground" Value="#272727"/>
|
||
|
</Style>
|
||
|
<Style Selector="#VibratePanel TextBox:focus TextBlock[Name=PART_LabelText]">
|
||
|
<Setter Property="Foreground" Value="#2196f3"/>
|
||
|
</Style>
|
||
|
<Style Selector="#VibratePanel StackPanel">
|
||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
</Style>
|
||
|
<Style Selector="#VibratePanel WrapPanel">
|
||
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
</Style>
|
||
|
<Style Selector="#VibratePanel WrapPanel Button">
|
||
|
<Setter Property="Width" Value="100" />
|
||
|
<Setter Property="Margin" Value="5" />
|
||
|
</Style>
|
||
|
</UserControl.Styles>
|
||
|
|
||
|
<Grid RowDefinitions="250,1*">
|
||
|
<Border Name="VibratePanel" Grid.Row="0" BorderBrush="#2196f3" BorderThickness="1">
|
||
|
<Grid RowDefinitions="30,1*">
|
||
|
<Border Grid.Row="0" Height="30" Background="#2196f3" Padding="8 0 0 0">
|
||
|
<TextBlock Text="震动报警服务器设置(TCP)" FontSize="14" VerticalAlignment="Center" MaxLines="1" Foreground="#F0F0F0" />
|
||
|
</Border>
|
||
|
<Grid Grid.Row="1" RowDefinitions="1*,1*,1*" ColumnDefinitions="1*,1*,1*">
|
||
|
<StackPanel Grid.Row="0" Grid.Column="0">
|
||
|
<TextBox Name="ServerPortTb" Classes="outline" Text="9000" assists:TextFieldAssist.Label="本地端口" />
|
||
|
</StackPanel>
|
||
|
<StackPanel Grid.Row="1" Grid.Column="0">
|
||
|
<TextBox Name="HeartKeepTb" Classes="outline" Text="10" assists:TextFieldAssist.Label="心跳间隔" />
|
||
|
</StackPanel>
|
||
|
<WrapPanel Grid.Row="2" Grid.Column="0">
|
||
|
<Button Name="OpenBtn" Classes="Light" Content="开启服务" Width="100" Margin="5" />
|
||
|
<Button Name="CloseBtn" Classes="Light" Content="关闭服务" Width="100" Margin="5" IsEnabled="False" />
|
||
|
</WrapPanel>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</UserControl>
|