This question is locked. New answers and comments are not allowed.
Is there a way to use binding in EmptyContentTemplate? My ViewModel has a Name property that I want to use in a Run in the EmptyContentTemplate, but I am getting
System.Windows.Data Error: BindingExpression path error: 'Name' property not found on '' 'System.String' (HashCode=757602046). BindingExpression: Path='Name' DataItem='' (HashCode=757602046); target element is 'System.Windows.Documents.Run' (Name='null'); target property is 'Text' (type 'System.String')..
It looks like the EmptyContentTemplate does not even now about the ViewModel and has its DataContent set to some string.
System.Windows.Data Error: BindingExpression path error: 'Name' property not found on '' 'System.String' (HashCode=757602046). BindingExpression: Path='Name' DataItem='' (HashCode=757602046); target element is 'System.Windows.Documents.Run' (Name='null'); target property is 'Text' (type 'System.String')..
It looks like the EmptyContentTemplate does not even now about the ViewModel and has its DataContent set to some string.