TabView.TabItems: why IList<object>? #10845
Unanswered
DanielTrommel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background: developing code that tries to work out the instance properties of a given XAML element via reflection, and had some trouble with TabView's content property
TabItems.The TabView class projected runtime class
ITabViewindicates TabItems to be of typeIList<object>.Why is the broad
objectchosen, and not the seemingly (functionally) requiredTabViewItem?Btw, I tested whether the
IList<object>indeed meant I could just put in `anything':For comparison, for (Stack)Panel, the ContentProperty
Childrenis aUIElementCollection, which makes sense, as any UIElement derivative can be put in.Questions:
Beta Was this translation helpful? Give feedback.
All reactions