protected override SettingUserControl GetSettingsUICore()
        {
            if (generalSettingUI == null)
            {
                generalSettingUI             = new GeneralSettingUserControl();
                generalSettingUI.DataContext = new GeneralSettingViewModel(this);
            }

            return(generalSettingUI);
        }
        protected override SettingUserControl GetSettingsUICore()
        {
            if (quickAccessToolbarSettingUI == null)
            {
                quickAccessToolbarSettingUI             = new QuickAccessToolbarSettingUserControl();
                quickAccessToolbarSettingUI.DataContext = quickAccessToolbarSettingViewModel;
            }

            return(quickAccessToolbarSettingUI);
        }
Beispiel #3
0
            public TreeViewItemModel(SettingUserControl optionUI)
            {
                OptionUI = optionUI;
                if (optionUI != null)
                {
                    Title            = optionUI.Title;
                    Category         = optionUI.Category;
                    Description      = optionUI.Description;
                    OptionUI.Loaded -= OptionUI_Loaded;
                    OptionUI.Loaded += OptionUI_Loaded;
                }

                items = new Collection <TreeViewItemModel>();
            }