So I have a FrameworkElement to which I apply a template that has a thumb. I calculate the angle and then I set the RenderTransfrom property equal to a RotationTranform. Once I do the rotation and want to do another rotation, the changes don’t stick, that it the element returns to its initial position. How can I make the changes stick after a transformation has been applied. Any help would be appreciated. Thank you.
Do transformations affect the actual element or are they only a rendering thing? Also do they affect the bounding box of the element? I tried a layout transformation and still the same result.
You can only have one tranform at a time, but if you need multiple transfomations you can use a
TransformGroupto add whatever transforms you need.Alternatively you can use a
MatrixTransformwhose Matrix you can manipulate (those changes will not be reversible but as there is only one transformation in total it should have a higher performance).