Rotating Marker after changing position/rotation

Topics: WPF
Oct 13, 2011 at 1:20 PM


I have a "custom marker", "OwnUnit", a UserControl which is assigned to a number of Marker.Shape properties. The "custom marker" has an icon as it's only UIElement and I've overridden the Onrender method which works great initially (by using icon.LayoutTransform = new RotateTransform(..)), rotating the icon. However I'd like to be able to do something like:

(customMarker.Shape as OwnUnit).SetHeading = 123

where SetHeading sets a private member containing the rotation of the icon, but the OnRender seems to be called only the first rendering of the shape - not when changing the position for a given marker having the UserControl as shape. Do you know how I can accomplish this?

Many thanks in advance

Oct 13, 2011 at 1:25 PM

Jan 15, 2015 at 3:23 PM
rotation is fixed