NotePopup.xaml.cs 850 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using InABox.Wpf;
  2. using System.Windows;
  3. namespace InABox.DynamicGrid
  4. {
  5. /// <summary>
  6. /// Interaction logic for NotePopup.xaml
  7. /// </summary>
  8. public partial class NotePopup : ThemableWindow
  9. {
  10. public NotePopup()
  11. {
  12. InitializeComponent();
  13. }
  14. public string Caption
  15. {
  16. get => (string)Heading.Content;
  17. set => Heading.Content = value;
  18. }
  19. public string Text
  20. {
  21. get => Editor.Text;
  22. set => Editor.Text = value;
  23. }
  24. private void OK_Click(object sender, RoutedEventArgs e)
  25. {
  26. DialogResult = true;
  27. Close();
  28. }
  29. private void Cancel_Click(object sender, RoutedEventArgs e)
  30. {
  31. DialogResult = false;
  32. Close();
  33. }
  34. }
  35. }