Indeed there is no HeaderSelectedItem
property in our RadOutlookBar
and there is no easy approach to get the height of the RadOutlookBar's
header. Since every theme has different size of the items, I think the most suitable way to achieve your requirement is to extract the heights of all themes from the implicit themes
of the control (or with any XAML inspecting tool) in a collection. And then you can manually change the tool bar's height when you change the theme.
For your convenience, I prepared a sample project achieving your requirement. Also, I encourage you to use our RadToolBar
control instead of the ToolBar Area
from your XAML.
I hope this information is helpful.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>