1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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
- {
- /// <summary>
- /// Interaction logic for SaveFilePopup.xaml
- /// </summary>
- 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; }
- }
- }
- }
|