private void btnMakeNewMenu_Click(object sender, RoutedEventArgs e)
        {
            // Retrieve the object by setting a temporary variable to reference the XAML static resource
            MenuMaker menuMaker = FindResource("menuMaker") as MenuMaker;

            menuMaker.UpdateMenu();
        }
Ejemplo n.º 2
0
 private void btnMakeNewMenu_Click(object sender, RoutedEventArgs e)
 {
     menuMaker.UpdateMenu();
 }
        private void newMenu_Click(object sender, RoutedEventArgs e)
        {
            MenuMaker menuMaker = FindResource("menuMaker") as MenuMaker;

            menuMaker.UpdateMenu();
        }