Exemplo n.º 1
0
 public MainPage()
 {
     this.InitializeComponent();
     Sounds                = SoundItemManager.GenerateSounds();
     SelectionItem         = MenuItemManager.GetMenuItems();
     BackButton.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 2
0
 private void BackButton_OnClick(object sender, RoutedEventArgs e)
 {
     Sounds.Clear();
     foreach (var item in SoundItemManager.GenerateSounds())
     {
         Sounds.Add(item);
     }
     BackButton.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 3
0
        private void MenuListView_OnItemClick(object sender, ItemClickEventArgs e)
        {
            var itemSelected = e.ClickedItem as MenuItem;

            if (itemSelected == null)
            {
                return;
            }
            Sounds.Clear();
            foreach (var item in SoundItemManager.GenerateSounds(itemSelected.Category))
            {
                Sounds.Add(item);
            }
            BackButton.Visibility = Visibility.Visible;
        }