ImportFilePopup.xaml.cs 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using PixiEditor.ViewModels;
  2. using System.Windows;
  3. namespace PixiEditor.Views
  4. {
  5. /// <summary>
  6. /// Interaction logic for ImportFilePopup.xaml
  7. /// </summary>
  8. public partial class ImportFilePopup : Window
  9. {
  10. ImportFilePopupViewModel dc = new ImportFilePopupViewModel();
  11. public ImportFilePopup()
  12. {
  13. InitializeComponent();
  14. this.DataContext = dc;
  15. }
  16. public int ImportHeight
  17. {
  18. get
  19. {
  20. return dc.ImportHeight;
  21. }
  22. set { dc.ImportWidth = value; }
  23. }
  24. public int ImportWidth
  25. {
  26. get { return dc.ImportWidth; }
  27. set { dc.ImportWidth = value; }
  28. }
  29. public string FilePath
  30. {
  31. get { return dc.FilePath; }
  32. set { dc.FilePath = value; }
  33. }
  34. }
  35. }