<Window xmlns="https://github.com/avaloniaui"
        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:ctrl="using:ClawdDotNet.Desktop.Controls"
        mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="420"
        x:Class="ClawdDotNet.Desktop.Views.TextEditorWindow"
        Icon="/Assets/app.ico"
        Title="Text bearbeiten"
        Width="600" Height="420"
        MinWidth="420" MinHeight="300"
        WindowStartupLocation="CenterOwner">

  <!-- Der Rahmen mit Eckmarken sitzt hier wie im Entwurf um den ganzen Dialog. Die
       Marken ragen nach aussen, deshalb 12 Punkte Abstand zum Fensterrand. -->
  <ctrl:BlueprintFrame Margin="12" Padding="16">
    <DockPanel>

      <TextBlock x:Name="TitleText" DockPanel.Dock="Top" Classes="h1"
                 Text="Text bearbeiten" Margin="0,0,0,12" TextWrapping="Wrap" />

      <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Spacing="8"
                  HorizontalAlignment="Right" Margin="0,14,0,0">
        <Button Content="Abbrechen" IsCancel="True" Click="OnCancel" />
        <Button Classes="primary" Content="Speichern" IsDefault="True" Click="OnSave" />
      </StackPanel>

      <TextBox x:Name="Editor" AcceptsReturn="True" TextWrapping="Wrap"
               VerticalContentAlignment="Top"
               ScrollViewer.VerticalScrollBarVisibility="Auto" />

    </DockPanel>
  </ctrl:BlueprintFrame>

</Window>
