I create a UserControl that is a specialized ListBox / View (the type does not matter). Now I am faced with the ability to save this type as UserControl or Inherit the List.
1) If I save it as a UserControl, I have a List control inside it, and then I need to create a DP for the ItemsSource, etc.
2) Allows you to inherit the List control and, therefore, automatically provides the ItemsSource property.
Is either acceptable or will become Code Horror. What is expected.
Perhaps there is option 3 that I don't know about?
source
share