Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BindingExpression in VS2013 theme #137

Closed
cuellius opened this issue Mar 15, 2020 · 3 comments
Closed

BindingExpression in VS2013 theme #137

cuellius opened this issue Mar 15, 2020 · 3 comments

Comments

@cuellius
Copy link
Contributor

If I use VS2013 theme, I get these errors in Visual Studio's Output Window:
System.Windows.Data Error: 40 : BindingExpression path error: 'RootDocument' property not found on 'object' ''LayoutDocumentFloatingWindow' (HashCode=36044558)'. BindingExpression:Path=Model.RootDocument.IsActive; DataItem='LayoutDocumentFloatingWindowControl' (Name=''); target element is 'LayoutDocumentFloatingWindowControl' (Name=''); target property is 'NoTarget' (type 'Object')

Please, fix this issue.

@cuellius
Copy link
Contributor Author

P. S. Version 4.0.0 from NuGet

@cuellius
Copy link
Contributor Author

I found a solution (maybe it is only partial solution): Add to class LayoutDocumentFloatingWindow property RootDocument as:
public LayoutContent RootDocument => RootPanel?.Descendents(). OfType<LayoutDocumentPane().FirstOrDefault(p => p.IsVisible)?.SelectedContent;

Dirkster99 added a commit that referenced this issue Mar 25, 2020
Dirkster99 added a commit that referenced this issue Mar 25, 2020
Dirkster99 added a commit that referenced this issue Mar 25, 2020
@Dirkster99
Copy link
Owner

Thanks for the feedback and suggestions but inventing a property just to make an error message go away is not a good fix. The right fix in this case to adjust the binding to the correct binding path which has slightly changed in comparison to the previously released version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants