System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Attributes[Bearing]; DataItem=null; target element is 'RotateTransform' (HashCode=17661557); target property is 'Angle' (type 'Double')
I'm looking into the links you sent me. It seems this is a thing more people would be interested in, and perhaps there could be a property on the MarkerSymbol for with an enum with the following values: Manual (uses manual offset values), CenterX (centers on the X axis), CenterY (centers on the Y axis), CenterBoth (center both X and Y). Pretty much like the SizeToContent property of a Window.
Do you set the symbol's ControlTemplate inside GetSymbol()?
From the different suggestions I've seen for resolving this issue in other scenarios, they all suggest setting the DataContext before InitializeComponent() (in other words before applying the ControlTemplate). Is this something you could perhaps fix?
Also, do you have an estimate for the next pre-release of 2.1? Or final release. I currently use the December build of 2.1.
This is not possible. Basically you can't guarantee that the datacontext is applied up front. The reason for that is because of some UIVirtualization going on under the covers, and UIElements being reused so the datacontext can even change to a different Graphic after the element has rendered. When the datacontext does get set, your bindings should update accordingly.
The december release IS the final release of v2.1. There are no public dates for v2.2 announced yet.