© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
Kai

❔ DataContext & UserControl

How can I set the DataContext of a usercontrol to a ViewModel, without creating a new instance of the VM each time the Control is loaded?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ How put specific UserControl to ContentControl baseing on DataContext.
C#CC# / help
4y ago
✅ WPF - Accessing a TreeViewItem's root UserControl DataContext for a Command
C#CC# / help
2y ago
❔ Datacontext WPF?
C#CC# / help
3y ago
Wrong DataContext Inference?
C#CC# / help
15mo ago