'Declaration Public ReadOnly Property OverflowAreaGroups As ReadOnlyOutlookBarGroupCollection
public ReadOnlyOutlookBarGroupCollection OverflowAreaGroups {get;}
The groups in the OverflowAreaGroups collection are displayed inside overflow area of XamOutlookBar. The OutlookBarGroup.LocationProperty of each group in this collection is set to OutlookBarGroupLocation.OverflowArea.
void xamOutlookBar1_SelectedGroupChanged(object sender, RoutedEventArgs e) { ShowGroupsLocation(xamOutlookBar1.OverflowAreaGroups); ShowGroupsLocation(xamOutlookBar1.NavigationAreaGroups); ShowGroupsLocation(xamOutlookBar1.ContextMenuGroups); } void ShowGroupsLocation(ReadOnlyOutlookBarGroupCollection groups) { foreach (OutlookBarGroup gr in groups) { int i= xamOutlookBar1.Groups.IndexOf(gr); OutlookBarGroup group= xamOutlookBar1.Groups[i]; Console.WriteLine (gr.Header + " - " +gr.Location); } }
Private Sub xamOutlookBar1_SelectedGroupChanged(ByVal sender As Object, ByVal e As RoutedEventArgs) ShowGroupsLocation(xamOutlookBar1.OverflowAreaGroups) ShowGroupsLocation(xamOutlookBar1.NavigationAreaGroups) ShowGroupsLocation(xamOutlookBar1.ContextMenuGroups) End Sub Private Sub ShowGroupsLocation(ByVal groups As ReadOnlyOutlookBarGroupCollection) Dim gr As OutlookBarGroup For Each gr In groups Dim i As Integer = xamOutlookBar1.Groups.IndexOf(gr) Dim group As OutlookBarGroup = xamOutlookBar1.Groups(i) Console.WriteLine (gr.Header + " - " +gr.Location) Next End Sub
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