Is there any way to use binding to set the UIElement's name? I always get a runtime exception saying
System.Windows.Markup.XamlParseException:
AG_E_UNKNOWN_ERROR
<Button Name="{Binding myName}" Content="{Binding myName, Mode=TwoWay}" />
If I take the binding off for the Name property the control works and the Content property is binded successfully.
Can you not bind to the Name Property of an <UIElement>?