© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
17 replies
Kingdawanage

Event handling in different views in WPF

Hello. So I have a button in my main window, And i would like for it to change controls in a different window. How would i link the event handler of the button of the mainwindow to the secondary window. I know you're supposed to use a view model for that, but i am unsure of how to implement it
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 Change Views
C#CC# / help
3y ago
WPF Checkbox handling
C#CC# / help
3y ago
❔ WPF MVVM multiple views problem
C#CC# / help
3y ago
❔ WPF MVVM ModelViews and Views
C#CC# / help
4y ago