BililiveRecorder/BililiveRecorder.WPF/Controls/AddRoomCard.xaml

38 lines
2.0 KiB
Plaintext
Raw Normal View History

2020-11-27 18:51:02 +08:00
<UserControl
x:Class="BililiveRecorder.WPF.Controls.AddRoomCard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="http://schemas.modernwpf.com/2019"
2021-01-04 14:01:11 +08:00
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
l:LocalizeDictionary.DesignCulture=""
l:ResxLocalizationProvider.DefaultAssembly="BililiveRecorder.WPF"
l:ResxLocalizationProvider.DefaultDictionary="Strings"
2020-11-27 18:51:02 +08:00
xmlns:local="clr-namespace:BililiveRecorder.WPF.Controls"
mc:Ignorable="d"
d:DesignHeight="110" d:DesignWidth="210">
2020-11-28 05:39:56 +08:00
<Border Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
BorderBrush="{DynamicResource SystemControlBackgroundAccentBrush}"
BorderThickness="1"
CornerRadius="5">
2020-12-15 18:53:52 +08:00
<Grid Margin="15">
2020-11-28 05:39:56 +08:00
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="3.5*"/>
</Grid.RowDefinitions>
2020-12-15 18:53:52 +08:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.ColumnSpan="2">
2020-12-10 17:02:56 +08:00
<ui:PathIcon Margin="5" Style="{StaticResource PathIconDataPlus}"/>
2021-01-04 14:01:11 +08:00
<TextBlock FontSize="20" VerticalAlignment="Center" Text="{l:Loc AddRoomCard_Title}"/>
2020-11-28 05:39:56 +08:00
</StackPanel>
2020-12-15 18:53:52 +08:00
<TextBox Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" x:Name="InputTextBox"
2021-01-04 14:01:11 +08:00
KeyDown="InputTextBox_KeyDown" ui:ControlHelper.PlaceholderText="{l:Loc AddRoomCard_PlaceholderText}"/>
<Button Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Content="{l:Loc AddRoomCard_ConfirmButton}" Click="Button_Click" />
2020-11-28 05:39:56 +08:00
</Grid>
</Border>
2020-11-27 18:51:02 +08:00
</UserControl>