Hello, I can attach to SelectedGroupChanged event of xamOutlookBar. But I need a click event for the SelectedGroup of xamOutlookBar. When I click the SelectedGroup this event should be fire. Can I do that or do you have some other workarounds?
ControlOutlookBar.SelectedGroupChanged += ControlOutlookBar_SelectedGroupChanged;
private void ControlOutlookBar_SelectedGroupChanged(object sender, RoutedEventArgs e)
{
... this is ok.
}
ControlOutlookBar.SelectedGroupClick ??? ---I need this
note: ControlOutlookBar.SelectedGroup.MouseDown and ControlOutlookBar.SelectedGroup.PreviewMouseDown and ControlOutlookBar.SelectedGroup.GotFocus do not fire.
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
I used PreviewMouseLeftButtonUp event and it Works fine now. Thank you.
It Works fine, but when I add a SelectedGroupChanged event, this new event does not fire.
<ig:XamOutlookBar SelectedGroupChanged="XamOutlookBar_SelectedGroupChanged_1" Height="280" VerticalAlignment="Top" Width="144">
private void OutlookBarGroup_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { OutlookBarGroup group = sender as OutlookBarGroup;
//Enters here and finishes working
private void XamOutlookBar_SelectedGroupChanged_1(object sender, RoutedEventArgs e) {
//Can not reach here
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the OutlookBarGroup and added an EventSetter for its PreviewMouseLeftButtonDown event. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.