Skip to content
Discussion options

You must be logged in to vote

In Stylet, you use s:View.Model with ContentControl:

<ContentControl s:View.Model="{Binding NetworkDataViewModel}"/>

You're trying to use it with local:NetworkDataView, but it won't do anything in that case. So the DataContext of NetworkDataView is still set to RootViewModel, which is why you get your binding error.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@GF-Huang
Comment options

@canton7
Comment options

@GF-Huang
Comment options

@GF-Huang
Comment options

@canton7
Comment options

Answer selected by GF-Huang
Comment options

You must be logged in to vote
3 replies
@canton7
Comment options

@GF-Huang
Comment options

@canton7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants