This is a migrated thread and some comments may be shown as answers.

Binding error for IsWindowsThemeEnabled

1 Answer 37 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 24 Feb 2016, 01:59 PM

Hello,

in the RibbonView_style.xaml source file, starting at line 5, there are the following trigger is defined:

<MultiDataTrigger>
    <MultiDataTrigger.Conditions>
        <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType=telerikRibbonView:RadRibbonWindow}, Path=IsWindowsThemeEnabled}" Value="True" />
        <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType=telerikRibbonView:RadRibbonWindow}, Path=IsTitleVisible}" Value="False" />
    </MultiDataTrigger.Conditions>
    <Setter Property="Foreground" Value="Black" />
</MultiDataTrigger>

 

If the RibbonView control is not inside a RadRibbonWindow, running the application in debug mode generates a binding error in the output window.

Worse, if the RadRibbonWindow is inside a window that inherits from RadRibbonWindow, it is also not found.

Conclusion: you had better setting this trigger by code, traversings the UI tree to look for the right control...

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 26 Feb 2016, 11:42 AM
Hello Patrick,

Thank you for the feedback. I logged this issue in our FeedbackPortal where you can track its progress. I have also updated your Telerik points as a small appreciation for your cooperation. 

Please excuse us for the inconvenience caused. 

Regards,
Milena
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RibbonView and RibbonWindow
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Milena
Telerik team
Share this question
or