Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Getting the Angle property from an item on a WPF form

$
0
0

Hey guys,

I'm working on a program that allows you to click on an item on a WPF form and rotate it using a control.  I've got that part worked out but what I need to be able do is determine the angle of an item that is already rotated.  Lets call the item that's been clicked on 'Focus_Panel' and it is an image object.  I think that I need to capture Focus_Panel.RenderTransform and from there get the RotateTransform that contains the Angle property.  I just can't figure out how bridge the gap between the Transform object and the RotateTransform object.  It's also possible that I'm completely off base with this.  If you can tell me how to capture the rotation property of an object I would appreciate it.  I need this in VB.net please.

Thanks guys.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>