'Declaration Public Function ExecuteCommand( _ ByVal command As RoutedCommand _ ) As Boolean
public bool ExecuteCommand( RoutedCommand command )
Private Sub Button_Click(sender As Object, e As RoutedEventArgs) Dim gr As New OutlookBarGroup() xamOutlookBar1.Groups.Add(gr) Dim xob As XamOutlookBar = XamOutlookBar.GetOutlookBar(gr) Dim cmd As RoutedCommand = OutlookBarCommands.ShowFewerButtonsCommand xob.ExecuteCommand(cmd) End Sub
private void Button_Click(object sender, RoutedEventArgs e) { OutlookBarGroup gr = new OutlookBarGroup(); xamOutlookBar1.Groups.Add(gr); XamOutlookBar xob = XamOutlookBar.GetOutlookBar(gr); RoutedCommand cmd = OutlookBarCommands.ShowFewerButtonsCommand; xob.ExecuteCommand(cmd); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2