Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Custom ItemsControl: Validating the ItemsControl's ItemsPanel and ItemsSource?

$
0
0

Hi,

I created my own custom panel and i am creating a custom itemscontrol which only can use the custom panel. How should i override the metadata for the ItemsPanelProperty to make sure that the panel is my custom panel?

Same goes for the ItemsSource, how should i make sure the ItemsSource is an IEnumerable<MyCustomClass>?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>