<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"/>
                </Grid.RowDefinitions>

                <Ramitta:winTreeList x:Name="TreeList"/>

                <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>

            </Grid>

            <Label x:Name="Debugtag" VerticalContentAlignment="Center" Content="就绪" Background="#FF007ACC" Padding="5,5,5,5" Grid.Row="2"/>

        </Grid>
    </Border>
</Window>
