Hi,
I've got a XamWebOutlookBar and I'd like to have the header of the selected group look different from the bottom. In other words, I want the UI element displayed on top of the OutlookBar to look different from the UI element that's displayed under the content on the stack.
I managed to achieve that by using 2 different templates on my OutlookGroup style.
However, my ultimate goal is to be able to display bound data at the top for some headers. It seems I can't do that because of the "magic" the SelectedGroupHeader control does.
Is there a way to achieve what I want?
Could you check this thread, it seems something similar to what you are asking for, I hope it can help you.
Let us know if you still have issues how to achieve your scenario.
Thanks
Thanks, that's nearly everything I wanted. I completely overlooked the fact that I could style the SelectedGroupHeader :(
Now, the only thing I need is to get the data from within the SelectedGroupHeader.Template. I add the data to an attached property to the OutlookGroup.
Now, I'm trying to work out how to refer to it within the DataTemplate of the HeaderTemplate (if at all possible). Any thought on the matter?
Good to know that your issue is solved and thanks for letting us know the approach you have used.
Regards,
I finally got it working the way I want it to (still this pesky Popup not displaying properly).
My solution was to stick an AttachedProperty to the OutlookGroup containing the Header and Data. Then I styled the SelectedGroupHeader to pass that as the Content along with a custom DataTemplate (another AttachedProperty).
I now have a ComboBox at the top right of my OutlookBar :)