Beispiel #1
0
 private async void OnSelectedCategoryChanged(SettingsCategoryViewModelBase value)
 {
     if (value != null)
     {
         await value.ActivateAsync();
     }
 }
Beispiel #2
0
        public void AddCategory(string parentCategory, SettingsCategoryViewModelBase categoryModel)
        {
            if (!Settings.TryGetValue(parentCategory, out var categories))
            {
                categories = new List <SettingsCategoryViewModelBase>();
                Settings[parentCategory] = categories;
            }

            categories.Add(categoryModel);
        }