NewFilePopup.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using PixiEditor.ViewModels;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace PixiEditor.Views
  17. {
  18. /// <summary>
  19. /// Interaction logic for NewFilePopup.xaml
  20. /// </summary>
  21. public partial class NewFilePopup : Window
  22. {
  23. public NewFilePopup()
  24. {
  25. InitializeComponent();
  26. }
  27. public int FileHeight
  28. {
  29. get { return (int)GetValue(FileHeightProperty); }
  30. set { SetValue(FileHeightProperty, value); }
  31. }
  32. // Using a DependencyProperty as the backing store for FileHeight. This enables animation, styling, binding, etc...
  33. public static readonly DependencyProperty FileHeightProperty =
  34. DependencyProperty.Register("FileHeight", typeof(int), typeof(NewFilePopup), new PropertyMetadata(16));
  35. public int FileWidth
  36. {
  37. get { return (int)GetValue(FileWidthProperty); }
  38. set { SetValue(FileWidthProperty, value); }
  39. }
  40. // Using a DependencyProperty as the backing store for FileWidth. This enables animation, styling, binding, etc...
  41. public static readonly DependencyProperty FileWidthProperty =
  42. DependencyProperty.Register("FileWidth", typeof(int), typeof(NewFilePopup), new PropertyMetadata(16));
  43. }
  44. }