- Please see attached screenshot -
The toolbar on the right side of the screen (blue line above "toolbar" buttons) should always have the same height as the HeaderSelectedItem element of the OutlookBar on the left. So when a user switches his theme at runtime, the toolbars height should adjust with the new selected theme. For example "Office 2013" and "Windows 8" themes use different heights. I tried that with the following code where "MyOutlookBar" is the key of my RadOutlookBar:
<!-- ToolBar Area -->
<
StackPanel
Orientation
=
"Horizontal"
Height
=
"{Binding ElementName=MyOutlookBar, Path=HeaderSelectedItem.Height}"
>
<
Image
Source
=
"{Binding ToolBarIcon}"
Stretch
=
"None"
/>
<
TextBlock
Text
=
"{Binding ToolBarTitle}"
/>
</
StackPanel
>
Sadly there is no "HeaderSelectedItem" property which I can refer to. How is that element accessible?