However, just making them publicly available is not a good idea - it is a really bad design.
You must disclose your real data through the properties of your UserControl. The best thing would be to introduce an interface.
Another solution (a more "WPF path") will use the data context as the only property that is accessed from the outside: controls can bind to the required properties.
source
share