VPet/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml

124 lines
7.1 KiB
Plaintext
Raw Normal View History

2024-03-27 16:45:14 +00:00
<pu:WindowX x:Class="VPet_Simulator.Windows.winMutiPlayer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:VPet_Simulator.Windows"
mc:Ignorable="d"
xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
Title="{ll:Str 访客表}"
MinHeight="400"
Height="400"
Width="550"
Closed="Window_Closed"
Style="{DynamicResource BaseWindowXStyle}"
Background="{DynamicResource PrimaryLighter}"
FontSize="{Binding FontSize, Source={x:Static pu:GlobalSettings.Setting}}"
MaxHeight="400"
ResizeMode="CanMinimize"
Closing="Window_Closing">
<TabControl x:Name="tabControl"
TabStripPlacement="Left"
pu:TabControlHelper.ItemsHorizontalHeaderAlignment="Stretch"
pu:TabControlHelper.ItemsWidth="220"
pu:TabControlHelper.ItemsPadding="15,8"
pu:TabControlHelper.ItemsHeight="34"
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource DARKPrimary}"
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}">
<pu:TabControlHelper.FrontControl>
<Grid Margin="7">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border CornerRadius="5"
Width="55"
Height="55"
BorderBrush="LightGray"
BorderThickness="1">
<Border.Background>
<ImageBrush x:Name="HostHead"
ImageSource="/Res/TopLogo2019.PNG" />
</Border.Background>
</Border>
<StackPanel Grid.Column="1"
Margin="7,0,0,0">
<TextBlock>
<Run x:Name="hostName"
Text="萝莉斯"
FontWeight="Bold"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoublePlusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}" />
<Run x:Name="hostPet"
Text="XXX"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoubleMinusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}" />
</TextBlock>
<StackPanel Orientation="Horizontal"
Opacity="0.7">
<TextBlock VerticalAlignment="Center"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoubleMinusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}">ID:</TextBlock>
<TextBox x:Name="lbLid"
VerticalAlignment="Center"
Background="Transparent"
BorderThickness="0"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoubleMinusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}" />
</StackPanel>
<Grid Margin="0,2,0,0">
<pu:Switch x:Name="swAllowJoin"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoubleMinusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}"
BorderBrush="#AFAFAF"
ToggleBrush="#AFAFAF"
Padding="2,0,0,0"
BoxHeight="13"
BoxWidth="21"
Foreground="#AFAFAF"
CheckedForeground="{DynamicResource PrimaryText}"
CheckedBackground="{DynamicResource PrimaryDarker}"
CheckedBorderBrush="{DynamicResource PrimaryDarker}"
CheckedContent="{ll:Str 好友加入}"
CheckedToggleBrush="{DynamicResource DARKPrimaryText}"
ToggleShadowColor="{x:Null}"
ToggleSize="9"
IsChecked="True"
Checked="swAllowJoin_Checked"
Unchecked="swAllowJoin_Unchecked" />
<pu:Switch x:Name="swAllowTouch"
HorizontalAlignment="Right"
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoubleMinusConverter}, ConverterParameter=2, Source={x:Static pu:GlobalSettings.Setting}}"
BorderBrush="#AFAFAF"
ToggleBrush="#AFAFAF"
Padding="2,0,0,0"
BoxHeight="13"
BoxWidth="21"
Foreground="#AFAFAF"
CheckedForeground="{DynamicResource PrimaryText}"
CheckedBackground="{DynamicResource PrimaryDarker}"
CheckedBorderBrush="{DynamicResource PrimaryDarker}"
CheckedContent="{ll:Str 好友交互}"
CheckedToggleBrush="{DynamicResource DARKPrimaryText}"
ToggleShadowColor="{x:Null}"
ToggleSize="9"
IsChecked="True"
Checked="swAllowTouch_Checked"
Unchecked="swAllowTouch_Unchecked" />
</Grid>
</StackPanel>
</Grid>
</pu:TabControlHelper.FrontControl>
<TabItem Header="{ll:Str 访客列表}">
<StackPanel x:Name="MUUCList" />
</TabItem>
<TabItem Header="{ll:Str 消息日志}">
<TextBox x:Name="tbLog"
Margin="0"
Padding="7"
VerticalContentAlignment="Stretch"
BorderThickness="0"
Background="Transparent"
Foreground="{DynamicResource DARKPrimaryDarker}"
IsReadOnly="True"
VerticalScrollBarVisibility="Visible" />
</TabItem>
</TabControl>
</pu:WindowX>