Situation:
- I have a third party control that inherits from System.Windows.Controls.ItemsControl
- I have an instance of this control called foo
- foo has a ListCollectionView datasource with 5 items and no filter.
- foo.Items.Count gives a result of 0
- (System.Windows.Controls.ItemsControl)(foo)).Items.Count of 5
Where this happens:
- A XAML.cs file's constructor
When this happens:
- In the xaml.cs file's constructor
- After InitializeComponent
Unverified claims:
- The owner of the third party control claims that it does not override Items in any way.
Question:
- Why does foo.Items.Count return a different value than (System.Windows.Controls.ItemsControl)(foo)).Items.Count