| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Collections.ObjectModel; |
| 4 | using System.Linq; |
| 5 | using System.Text; |
| 6 | using System.Threading.Tasks; |
| 7 | using UI.Controls; |
| 8 | using UI.Controls.Base; |
| 9 | using UI.Controls.Navigation.Models; |
| 10 | using UI.Controls.Window; |
| 11 | |
| 12 | namespace UI.Models |
| 13 | { |
| 14 | public class MainWindowModel : UINotifyPropertyChanged |
| 15 | { |
| 16 | private IServiceProvider ServiceProvider_; |
| 17 | public IServiceProvider ServiceProvider |
| 18 | { |
| 19 | get { return ServiceProvider_; } |
| 20 | set { ServiceProvider_ = value; OnPropertyChanged(); } |
| 21 | } |
| 22 | |
| 23 | private string Uri_; |
| 24 | public string Uri |
| 25 | { |
| 26 | get { return Uri_; } |
| 27 | set { Uri_ = value; OnPropertyChanged(); } |
| 28 | } |
| 29 | |
| 30 | private object Data_; |
| 31 | ///<summary> |
| 32 | /// |
| 33 | ///</summary> |
| 34 | public object Data |
| 35 | { |
| 36 | get { return Data_; } |
| 37 | set { Data_ = value; OnPropertyChanged(); } |
| 38 | } |
| 39 | |
| 40 | public ObservableCollection<NavigationItemModel> Items { get; set; } |
| 41 | |
| 42 | private double NavigationWidth_ = 220; |
| 43 | public double NavigationWidth |
| 44 | { |
| 45 | get { return NavigationWidth_; } |
| 46 | set { NavigationWidth_ = value; OnPropertyChanged(); } |
| 47 | } |
| 48 | |
| 49 | private bool IsShowNavigation_ = true; |
| 50 | public bool IsShowNavigation |
| 51 | { |
| 52 | get { return IsShowNavigation_; } |
| 53 | set { IsShowNavigation_ = value; OnPropertyChanged(); } |
| 54 | } |
| 55 | |
| 56 | private string Title_; |
| 57 | public string Title |
| 58 | { |
| 59 | get { return Title_; } |
| 60 | set { Title_ = value; OnPropertyChanged(); } |
| 61 | } |
| 62 | private bool IsShowTitleBar_ = false; |
| 63 | public bool IsShowTitleBar |
| 64 | { |
| 65 | get { return IsShowTitleBar_; } |
| 66 | set { IsShowTitleBar_ = value; OnPropertyChanged(); } |
| 67 | } |
| 68 | |
| 69 | |
| 70 | private NavigationItemModel NavSelectedItem_; |
| 71 | public NavigationItemModel NavSelectedItem |
| 72 | { |
| 73 | get { return NavSelectedItem_; } |
| 74 | set { NavSelectedItem_ = value; OnPropertyChanged(); } |
| 75 | } |
| 76 | |
| 77 | private PageContainer PageContainer_; |
| 78 | public PageContainer PageContainer { get { return PageContainer_; } set { PageContainer_ = value; OnPropertyChanged(); } } |
| 79 | |
| 80 | private List<string> IndexUriList_; |
| 81 | public List<string> IndexUriList { get { return IndexUriList_; } set { IndexUriList_ = value; OnPropertyChanged(); } } |
| 82 | |
| 83 | |
| 84 | private string ToastContent_; |
| 85 | public string ToastContent { get { return ToastContent_; } set { ToastContent_ = value; OnPropertyChanged(); } } |
| 86 | |
| 87 | private bool IsShowToast_ = false; |
| 88 | public bool IsShowToast { get { return IsShowToast_; } set { IsShowToast_ = value; OnPropertyChanged(); } } |
| 89 | private IconTypes ToastIcon_; |
| 90 | public IconTypes ToastIcon { get { return ToastIcon_; } set { ToastIcon_ = value; OnPropertyChanged(); } } |
| 91 | |
| 92 | private ToastType ToastType_; |
| 93 | public ToastType ToastType |
| 94 | { |
| 95 | get { return ToastType_; } |
| 96 | set { ToastType_ = value; OnPropertyChanged(); } |
| 97 | } |
| 98 | } |
| 99 | } |