Creating custom controls in wpf for reuse

I was wondering how I can save a user control the same way we can save a C # class in a DLL file and import this file whenever we need to use this class. How can we import this control and use it. It would be nice if we could create custom controls and save them for reuse instead of copying xaml and code every time we had to use it.

+4
source share
1 answer

You have such flexibility with WPF and many options. Here is a great introduction to your options:

These options include:

  • Retrieving from UserControl
  • Conclusion from Control
  • Retrieving from FrameworkElement

Compromises are described in detail in the article.

+7
source

All Articles