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
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).
Yes, you can try with a TextBox, a ComboBox or a Button (at the button you need to define a Content), and the Binding on these elements work fine.In my application I use the XamRibbon and XamDockManager and to resolve the problem, I tried to do this type of Binding on the XamRibbon and XamDockManager objects (maybe is better), but does not work the same.
Thanks for reply.
I was able to set the LayoutTransform and it did affect the elements but as I mentioned it affects the size of the wpf elements like the caption but won't affect the os buttons (close, min, max). I would recommend that you contact the support group, describe the issue to them and provide them with a sample that demonstrates the issue so it can be logged.