Profile Picture

Apply geometry transformation to an element

Posted By Kevin Martin Last Year
Author
Message
Kevin Martin
Question Posted Last Year
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1, Visits: 9
How can I apply a geometry transformation to an element?

Example, how can I do a rotation of 180 degrees to a NButton?

Nevron Support Team
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)

Group: Moderators
Last Active: Yesterday @ 6:33 AM
Posts: 2,710, Visits: 2,626
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);



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic