I have an application that use XamOutlookBar Control. By default, when we open the application, the first OutlookBarGroup will always be selected. Is there anyway to disable that?
I try to set
XamOutlookBar.Groups[0].IsSelected = false;
in the MainWindows's constructor and it does not seems to work.
Hello,
The selection of the first group happens after the window is initialized and before the XamOutlookBar is loaded. I would suggest moving the code for clearing the selection in the XamOutlookBar's loaded event as follows (either line would achieve the desired result):
private void xamOutlookBar1_Loaded(object sender, RoutedEventArgs e)
{
xamOutlookBar1.SelectedGroup = null;
//xamOutlookBar1.Groups[0].IsSelected = false;
}
I am attaching a sample application for your reference. Please review it and let me know if you need any further assistance on the matter.