Is it possible to assign value to a dynamic resource from another dynamic resource?
For example
<sys:Double x:Key="ButtonWidth">48</sys:Double>
<sys:Double x:Key="SmallButtonWidth"> ButtonWidth / 2 </sys:Double>
Is it possible to assign value to a dynamic resource from another dynamic resource?
For example
<sys:Double x:Key="ButtonWidth">48</sys:Double>
<sys:Double x:Key="SmallButtonWidth"> ButtonWidth / 2 </sys:Double>
It is possible to transform a value using a custom
MarkupExtension
.e.g.
With this you can build arbitrary expression trees (which is a lot more easy than parsing math strings which you can do as well of course if you do not mind the trouble).