© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
edgarka_

❔ WPF MVVM ModelViews and Views

I have recently learned that ModelView can't have UI elements in it (bad practice). Hence, couple of questions:
- If VM should not handle display UIs, how can I display messageBox to the user that, let's say, puts wrong input? If I don't want to grey out button or put message in red "wrong input"?
- Is it not good to open new window on button click? Went online, but it's suggested to change views (if it's User Controls) or use modals (overlay main window). How does it work with new windows?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF MVVM multiple views problem
C#CC# / help
3y ago
❔ Best Option to Swicth views in MVVM wpf
C#CC# / help
3y ago
WPF Question MVVM
C#CC# / help
2y ago
Navigation and Dialogs with MVVM and WPF
C#CC# / help
2y ago