© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ How put specific UserControl to ContentControl baseing on DataContext.
C
C# / help
4y ago
✅ WPF - Accessing a TreeViewItem's root UserControl DataContext for a Command
C
C# / help
2y ago
❔ Datacontext WPF?
C
C# / help
3y ago
Wrong DataContext Inference?
C
C# / help
15mo ago