ImportFilePopup.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.Shapes;
  15. namespace PixiEditor.Views
  16. {
  17. /// <summary>
  18. /// Interaction logic for ImportFilePopup.xaml
  19. /// </summary>
  20. public partial class ImportFilePopup : Window
  21. {
  22. ImportFilePopupViewModel dc = new ImportFilePopupViewModel();
  23. public ImportFilePopup()
  24. {
  25. InitializeComponent();
  26. this.DataContext = dc;
  27. }
  28. public int ImportHeight
  29. {
  30. get
  31. {
  32. return dc.ImportHeight;
  33. }
  34. set { dc.ImportWidth = value; }
  35. }
  36. public int ImportWidth
  37. {
  38. get { return dc.ImportWidth; }
  39. set { dc.ImportWidth = value; }
  40. }
  41. public string FilePath
  42. {
  43. get { return dc.FilePath; }
  44. set { dc.FilePath = value; }
  45. }
  46. }
  47. }