TextBoxDialog.xaml 1.3 KB

1234567891011121314151617181920212223242526
  1. <wpf:ThemableWindow x:Class="InABox.WPF.TextBoxDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:wpf="clr-namespace:InABox.Wpf"
  7. mc:Ignorable="d"
  8. Title="MemoEditor" Height="450" Width="800">
  9. <Grid Margin="5">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*" />
  12. <ColumnDefinition Width="Auto" />
  13. <ColumnDefinition Width="Auto" />
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. <RowDefinition Height="Auto" />
  18. </Grid.RowDefinitions>
  19. <TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" x:Name="Memo" Background="LightYellow"
  20. AcceptsReturn="True" VerticalScrollBarVisibility="Auto" AcceptsTab="true" />
  21. <Button Grid.Row="1" Grid.Column="1" Margin="5,5,0,0" Width="80" Height="30" x:Name="OK" Content="OK"
  22. Click="OK_Click" />
  23. <Button Grid.Row="1" Grid.Column="2" Margin="5,5,0,0" Width="80" Height="30" x:Name="Cancel" Content="Cancel"
  24. Click="Cancel_Click" />
  25. </Grid>
  26. </wpf:ThemableWindow>