Dynamic Fontsize
Posted: 22 Oct 2014, 14:00
Hello again.
As we have been working with Android and iPhone lately we have seen that there we need to be able to change the font size of the application depending on what resolution the device has.
So I attempted to use a DynamicResource like this:
and figured I could reference it in CodeBehind similar to this:
But Double is not derived from BaseComponent so I cannot. So I dive into documentation and find SystemDouble, which is derived from BaseComponent. But I cannot find system double in Noesis.
I might be totally on the wrong field here, but it seemed like a viable way of doing it.
Is there a way to either get this to work or to achieve the same effect using a different solution?
As we have been working with Android and iPhone lately we have seen that there we need to be able to change the font size of the application depending on what resolution the device has.
So I attempted to use a DynamicResource like this:
Code: Select all
<sys:Double x:Key="BigFontSize">32</sys:Double>Code: Select all
_bigFontSize = root.TryFindResource<Double>("BigFont");I might be totally on the wrong field here, but it seemed like a viable way of doing it.
Is there a way to either get this to work or to achieve the same effect using a different solution?