Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
990
Binding to LayoutTransform in RibbonWindowContentHost
posted

In my application I have the following code:

<igRibbon:RibbonWindowContentHost.LayoutTransform>
 <ScaleTransform ScaleX="{Binding Source={x:Static Application.Current}, Path=Properties[Settings].Zoom}"
   ScaleY="{Binding Source={x:Static Application.Current}, Path=Properties[Settings].Zoom}"/>
</igRibbon:RibbonWindowContentHost.LayoutTransform>
 

but if I change the source (via a slider) the appearance does not change, why? is a bug?

Thanks for reply

Parents
  • 54937
    Offline posted

    I can't say from the snippet but considering the LayoutTransform is defined on the base WPF FrameworkElement class I'm guessing that the Binding is never getting invoked - i.e. what you are binding to is not sending any change notifications that the binding can use to update the target. Do you have a sample that demonstrates this working with some other WPF element but not working with ours? BTW, you probably should not set this on the RibbonWindowContentHost itself since its template provides the chrome for the window when on non-glass systems (so things like the max/min/close buttons will scale in that case) but the same aspects are provided by the OS on a vista glass system and therefore those cannot scale (since they are rendered by the OS).

Reply Children