private void newMenu_Click(object sender, RoutedEventArgs e) { MenuMaker menuMaker = FindResource("menuMaker") as MenuMaker; menuMaker.UpdateMenu(); }