using PixiEditor.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace PixiEditor.Views { /// /// Interaction logic for SaveFilePopup.xaml /// public partial class SaveFilePopup : Window { SaveFilePopupViewModel dataContext = new SaveFilePopupViewModel(); public SaveFilePopup() { InitializeComponent(); this.DataContext = dataContext; } public int SaveWidth { get { return (int)GetValue(SaveWidthProperty); } set { SetValue(SaveWidthProperty, value); } } public int SaveHeight { get { return (int)GetValue(SaveHeightProperty); } set { SetValue(SaveHeightProperty, value); } } // Using a DependencyProperty as the backing store for SaveHeight. This enables animation, styling, binding, etc... public static readonly DependencyProperty SaveHeightProperty = DependencyProperty.Register("SaveHeight", typeof(int), typeof(SaveFilePopup), new PropertyMetadata(32)); // Using a DependencyProperty as the backing store for SaveWidth. This enables animation, styling, binding, etc... public static readonly DependencyProperty SaveWidthProperty = DependencyProperty.Register("SaveWidth", typeof(int), typeof(SaveFilePopup), new PropertyMetadata(32)); public string SavePath { get { return dataContext.FilePath; } set { dataContext.FilePath = value; } } } }