VPet/VPet-Simulator.Core/Display/MessageBar.xaml

35 lines
2.2 KiB
Plaintext
Raw Normal View History

2023-05-19 16:43:22 +00:00
<UserControl x:Class="VPet_Simulator.Core.MessageBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2022-12-13 07:10:18 +00:00
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2023-05-19 16:43:22 +00:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:local="clr-namespace:VPet_Simulator.Core" mc:Ignorable="d" Height="500" Width="500"
2024-03-10 05:11:09 +00:00
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
2023-05-19 16:43:22 +00:00
MouseDoubleClick="UserControl_MouseDoubleClick">
2022-12-20 10:08:30 +00:00
<UserControl.Resources>
2024-03-10 05:11:09 +00:00
<ResourceDictionary Source="Theme.xaml" d:IsDataSource="True" />
2022-12-20 10:08:30 +00:00
</UserControl.Resources>
2024-03-10 05:11:09 +00:00
<UserControl.ContextMenu>
<ContextMenu Opened="ContextMenu_Opened" Closed="ContextMenu_Closed">
<MenuItem Header="{ll:Str 复制全文}" Click="MenuItemCopy_Click" />
<MenuItem Header="{ll:Str 关闭}" Click="MenuItemClose_Click" />
</ContextMenu>
</UserControl.ContextMenu>
<Border x:Name="BorderMain" Background="{DynamicResource Primary}" BorderBrush="{DynamicResource DARKPrimaryDark}"
BorderThickness="5" VerticalAlignment="Bottom" Padding="10" Margin="5" CornerRadius="5"
MouseEnter="Border_MouseEnter" MouseLeave="Border_MouseLeave">
2022-12-20 10:08:30 +00:00
<StackPanel>
2023-05-19 16:43:22 +00:00
<Label x:Name="LName" Content="虚拟桌宠名字:" Foreground="{DynamicResource PrimaryText}"
HorizontalAlignment="Left" Padding="0" FontWeight="Bold" Margin="0,0,0,6" FontSize="32"
Background="{x:Null}" />
<ScrollViewer x:Name="sv" MaxHeight="400">
2024-03-10 05:11:09 +00:00
<TextBox x:Name="TText" Text="我说话长这样,这是我说的话巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉" IsReadOnly="True"
2024-03-12 11:36:47 +00:00
TextWrapping="WrapWithOverflow" FontSize="24" x:FieldModifier="public" Background="{x:Null}"
BorderBrush="{x:Null}" BorderThickness="0" SizeChanged="TText_SizeChanged" />
2023-05-19 16:43:22 +00:00
</ScrollViewer>
<Grid x:Name="MessageBoxContent" x:FieldModifier="public">
2024-03-10 05:11:09 +00:00
</Grid>
2022-12-20 10:08:30 +00:00
</StackPanel>
</Border>
2022-12-13 07:10:18 +00:00
</UserControl>