VPet/VPet-Simulator.Windows/WinDesign/TalkBoxAPI.xaml

25 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-03-13 15:40:04 +00:00
<UserControl x:Class="VPet_Simulator.Windows.TalkBoxAPI"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2023-07-02 13:41:38 +00:00
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
2023-03-13 15:40:04 +00:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2023-05-30 16:51:17 +00:00
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" Height="500" Width="500" VerticalAlignment="Top">
2023-04-04 09:32:29 +00:00
<Border Background="{DynamicResource SecondaryLighter}" BorderBrush="{DynamicResource Secondary}"
BorderThickness="5" VerticalAlignment="Top" Margin="5,50,5,5" CornerRadius="5" Padding="5">
2023-03-13 15:40:04 +00:00
<Grid>
<Grid.ColumnDefinitions>
2023-04-04 09:32:29 +00:00
<ColumnDefinition Width="4*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="1*" />
2023-03-13 15:40:04 +00:00
</Grid.ColumnDefinitions>
<TextBox x:Name="tbTalk" Style="{DynamicResource StandardTextBoxStyle}" Height="Auto"
2023-07-02 13:41:38 +00:00
pu:TextBoxHelper.Watermark="{ll:Str 和桌宠说}" FontSize="30" AcceptsReturn="True" TextWrapping="WrapWithOverflow"
2023-04-04 09:32:29 +00:00
PreviewKeyDown="tbTalk_KeyDown" />
2023-07-02 13:41:38 +00:00
<Button pu:ButtonHelper.CornerRadius="4" Content="{ll:Str 发送}" BorderThickness="2"
Background="{DynamicResource PrimaryLight}" Grid.Column="2" ToolTip="{ll:Str '按 Ctrl+Enter 发送'}"
2023-04-04 09:32:29 +00:00
BorderBrush="{DynamicResource DARKPrimaryDarker}" FontSize="30" Click="SendMessage_Click" />
2023-03-13 15:40:04 +00:00
</Grid>
</Border>
</UserControl>