| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <hc:Window x:Class="TeamAAS.Views.AddMotionCardDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:loc="clr-namespace:TeamAAS.Localization"
- Title="{loc:Translate '添加控制卡'}"
- Width="400"
- Height="458"
- WindowStartupLocation="CenterOwner"
- ResizeMode="NoResize"
- Background="{DynamicResource RegionBrush}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="100*" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <TextBlock Text="🎛️添加控制卡"
- FontSize="18"
- FontWeight="Bold"
- Foreground="{DynamicResource PrimaryTextBrush}"
- Margin="0,0,0,24" />
- <ScrollViewer Grid.Row="1">
-
- <StackPanel Orientation="Vertical">
-
- <TextBlock Text="{loc:Translate '名称'}"
- FontSize="13"
- Margin="0,0,0,4"
- Foreground="{DynamicResource SecondaryTextBrush}" />
- <TextBox x:Name="txtName"
- Text="{loc:Translate '控制卡1'}"
- FontSize="13"
- Padding="8,6"
- Margin="0,0,0,16" />
- <!-- Brand -->
- <TextBlock Text="{loc:Translate '品牌'}"
- FontSize="13"
- Margin="0,0,0,4"
- Foreground="{DynamicResource SecondaryTextBrush}" />
- <ComboBox x:Name="cbBrand"
- FontSize="13"
- Padding="8,6"
- Margin="0,0,0,16"
- SelectedIndex="1">
-
- </ComboBox>
- </StackPanel>
- </ScrollViewer>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- Margin="176,0,0,0">
- <Button Content="{loc:Translate '取消'}"
- MinWidth="80"
- Padding="16,0"
- Margin="0,0,12,0"
- IsCancel="True"
- Style="{StaticResource ButtonDefault}" />
- <Button Content="{loc:Translate '确定'}"
- MinWidth="80"
- Padding="16,0"
- IsDefault="True"
- Click="BtnOK_Click"
- Style="{StaticResource ButtonPrimary}" />
- </StackPanel>
-
- </Grid>
- </hc:Window>
|