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);
}
}