Nevron Forum

Apply geometry transformation to an element

https://www.nevron.com/Forum/Topic12082.aspx

By Kevin Martin - Thursday, April 6, 2017

How can I apply a geometry transformation to an element?

Example, how can I do a rotation of 180 degrees to a NButton?
By Nevron Support - Tuesday, April 11, 2017

Hi,

To apply a transformation to a widget, you should embed in in an NTransformContent element. For example, to rotate a button to 180 degrees, you can use the following piece of code:

NButton button = new NButton("Rotated Button");
NTransformContent transformContent = new NTransformContent(button);
transformContent.Angle = new NAngle(180);