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

<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.FenceServer.Fence"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450">
<UserControl.Styles>
<Style Selector="#FencePanel TextBox">
<Setter Property="Width" Value="200" />
<Setter Property="UseFloatingWatermark" Value="True"/>
</Style>
<Style Selector="#FencePanel TextBlock[Name=PART_LabelText]">
<Setter Property="Foreground" Value="#272727"/>
</Style>
<Style Selector="#FencePanel TextBox:focus TextBlock[Name=PART_LabelText]">
<Setter Property="Foreground" Value="#2196f3"/>
</Style>
<Style Selector="#FencePanel StackPanel">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="#FencePanel WrapPanel">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="#FencePanel WrapPanel Button">
<Setter Property="Width" Value="100" />
<Setter Property="Margin" Value="5" />
</Style>
</UserControl.Styles>
<Grid Name="FencePanel" RowDefinitions="250,1*">
<Border 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="优周围网服务器设置(UDP)" 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="23039" 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>