public static void AddIconButton(this IApplicationBar appBar, string text, string iconPath, EventHandler clickHandler) { appBar.Buttons.Add(ApplicationBarHelper.CreateIconButton(text, iconPath, clickHandler)); }
public static void AddIconButton(this CommandBar appBar, string text, string iconPath, RoutedEventHandler clickHandler) { appBar.PrimaryCommands.Add(ApplicationBarHelper.CreateIconButton(text, iconPath, clickHandler)); }