Files
Ramitta-lib/template/MainWindow.xaml
2025-11-11 16:51:37 +08:00

67 lines
3.0 KiB
XML

<Window x:Class="template.MainWindow"
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:template"
mc:Ignorable="d"
xmlns:Ramitta="clr-namespace:Ramitta;assembly=Ramitta"
Title="template" Height="479" Width="623" WindowStartupLocation="CenterScreen"
Background="#FF1A1A1D" Foreground="White" WindowStyle="None" AllowsTransparency="True" FontFamily="Segoe UI"
>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Ramitta;component/Generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Border BorderBrush="{Binding Background, ElementName=Debugtag}" BorderThickness="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- 自定义标题栏 -->
<Ramitta:winTitleBar Title="{Binding Title, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" Icon="{Binding Icon, RelativeSource={RelativeSource AncestorType={x:Type Window}}}"/>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel>
<ComboBox x:Name="combox1"/>
<ComboBox x:Name="combox2"/>
<TextBlock x:Name="debugtext" Text="Berumai"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="1">
<Button Content="增" Width="100" Height="50" Click="增"/>
<Button Content="删" Width="100" Height="50" Click="删"/>
<Button Content="改" Width="100" Height="50" Click="改"/>
<Button Content="查" Width="100" Height="50" Click="查"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2">
<Button Content="载入" Width="100" Height="50" Click="载入"/>
<Button Content="卸载" Width="100" Height="50" Click="卸载"/>
<Button Content="转录" Width="100" Height="50" Click="转录"/>
<Button Content="逆转" Width="100" Height="50" Click="逆转"/>
</StackPanel>
</Grid>
<Label x:Name="Debugtag" VerticalContentAlignment="Center" Content="就绪" Background="#FF007ACC" Padding="5,5,5,5" Grid.Row="2"/>
</Grid>
</Border>
</Window>