Skip to content

Is there a way to access to viewmodel from MainWindow.cs? #4447

Answered by Cheesebaron
btylmz asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like you are doing some weird stuff in your ViewModel and it has the responsibility for listening to your serial port socket. This should probably be offloaded to a service layer in your App instead. Then you could resolve this service layer part using the IoC.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@btylmz
Comment options

@entdark
Comment options

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