ElementName Binding is failing

You might not have a namescope where you try to bind, you could try to replace the ElementName construct with Source={x:Reference DisplayMarkers}.

The gist of it is that if you have elements in XAML which are not in the visual or logical tree you will not be able to use certain bindings like RelativeSource and ElementName, I suspect that DataSeries is not in any tree either (it sure sounds like it’s abstract).

For a workaround for potential cyclical dependency errors see: https://stackoverflow.com/a/6858917/546730

Leave a Comment