示例#1
0
 private void ShowCategory(params string[] categories)
 {
     //ElementSet.Children<AppBarButton>(commandBar.PrimaryCommands)
     //    .ForEach(v => v.Show(v.IsCategory(categories)));
     ElementSet.Children <Button>(commandBar.Children)
     .ForEach(v => v.Show(v.IsCategory(categories)));
 }
 private void ShowCategory(params string[] categories)
 {
     ElementSet.Children <AppBarButton>(commandBar.PrimaryCommands)
     .ForEach(v => v.Show(v.IsCategory(categories)));
     ElementSet.Children <AppBarButton>(commandBar.Content)
     .ForEach(v => v.Show(v.IsCategory(categories)));
     search.Show(search.IsCategory(categories));
 }
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     ElementSet.Children <AppBarButton>(commandBar.PrimaryCommands).Click += OnButtonClick;
     ElementSet.Children <AppBarButton>(commandBar.Content).Click         += OnButtonClick;
 }