1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using PixiEditor.ViewModels;
- using System.Windows;
- namespace PixiEditor.Views
- {
- /// <summary>
- /// Interaction logic for SaveFilePopup.xaml
- /// </summary>
- public partial class SaveFilePopup : Window
- {
- public static readonly DependencyProperty SaveHeightProperty =
- DependencyProperty.Register("SaveHeight", typeof(int), typeof(SaveFilePopup), new PropertyMetadata(32));
- public static readonly DependencyProperty SaveWidthProperty =
- DependencyProperty.Register("SaveWidth", typeof(int), typeof(SaveFilePopup), new PropertyMetadata(32));
- private readonly SaveFilePopupViewModel dataContext = new SaveFilePopupViewModel();
- public SaveFilePopup()
- {
- InitializeComponent();
- Owner = Application.Current.MainWindow;
- DataContext = dataContext;
- }
- public int SaveWidth
- {
- get => (int)GetValue(SaveWidthProperty);
- set => SetValue(SaveWidthProperty, value);
- }
- public int SaveHeight
- {
- get => (int)GetValue(SaveHeightProperty);
- set => SetValue(SaveHeightProperty, value);
- }
- public string SavePath
- {
- get => dataContext.FilePath;
- set => dataContext.FilePath = value;
- }
- }
- }
|