Hi,
Is there any way i can externally select which group/internal group in the xaml outlookbar is selected. So what is want is to be able to navigate and select a particular group or inner group(say Mail/Favourite/Inbox) without clicking around with mouse. I should be able to set the said item thorugh some binding or command.
Thanks
Try thisDim grp As OutlookBarGroup = Menu.Groups("Personlig")Menu.SelectedGroup = grpMenu is the name of the xamOutlookbarPersonlig is the key on the group
How can i do two way binding for the SelectedGroup property of the Xamoutlookbar conttrol ? I have a list of person bound to the Source property with some datatemaplte. Now when i bind SelectedGroup to a property of type Person on my viewmodel the binding breaks giving an error about conversion between OutlookBarGroup and person object. Can you please help me on tjhis one??
Thanks in advance
Where do You try to bind?
header or content?
Did not get your question can you please explain.
I am doing something like this
<
igOB:XamOutlookBar
x:Name="outlookBar"
DockPanel.Dock="Left"
=OneWay}" SelectedGroup="{Binding Path=SelectedNavigationGroup, ElementName=This, Mode=TwoWay}"/>
DockPanel.Dock
="Left"
=OneWay}"
below is the proper markup
<igOB:XamOutlookBar
GroupsSource="{Binding Path=Targets, ElementName=This, Mode
Hi Alex,
Just wanted to know if you managed to find anything on my issue?
Actually all i am doing is trying to use the XamlOutlookbar in a tab control and maintain selection across tabs. I have the SelectedGroup bound to the SelectedGroupTarget property of my ViewModel. So even if I accept that hte selection will be gone and i need to somehow maintain it in my vm its of no use as i am still facing issue.
When i have a single tabitem all is fine and i can easily navigate between Groups with no issue. But as soon as I add more than one TabItem and then when i switch between 1->2->1 adn then try to navigate between groups the SelectedGroup becomes Null :(. I am really caught up with this one and see no way out of this. On Navigating to other group the convertor's ConvertBack for the SelectedGroup is fired first and then it in turn calls the setter of the Vm.SelectedGroup properrty. All is well and the value is correct, now i the PropertyChange event is fired from the setter and all hell breaks loose as somehow the converter's ConvertBack is called again and and this time the value is null for the selected group.
I need help badly on this on
Any updates on this one?
The code is as pasted below. I am not doing anything more that just using a converter for the selected group.
}}"
="OutlookBar_Loaded">
>
}">
<!--<Setter Property="Visibility" Value="Collapsed" />-->
}" />
In the converter my convert back mentod just retrives the datacontext of the curretnyl selected group and converts it to the desired type.
NavigationGroupTarget
selectedTarget = null;
if (null != value)
{
OutlookBarGroup group = value as OutlookBarGroup;
if (null != group)
NavigationGroupTarget target = group.DataContext as NavigationGroupTarget;
if (null != target)
selectedTarget = target;
}
else
throw new ArgumentNullException("value");
return selectedTarget;
Please not the the issue i am facing is only with this convert back method which gets called multiple times and on switch between tabs this count increases.
Thanks for the help
Prayag