WPF - Custom Control Help
See attached files, the template binding to FlyoutDirection is not working. I am getting this exception:
System.Windows.Markup.XamlParseException
HResult=0x80131501
Message='Set property 'System.Windows.Condition.Binding' threw an exception.' Line number '46' and line position '34'.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
InvalidCastException: Unable to cast object of type 'System.Windows.TemplateBindingExpression' to type 'System.Windows.Data.BindingBase'.