How do I access the children of an ItemsControl?

后端 未结 4 1065
悲&欢浪女
悲&欢浪女 2020-12-05 17:22

If i have a component derived from ItemsControl, can I access a collection of it\'s children so that I can loop through them to perform certain actions? I can\

4条回答
  •  有刺的猬
    2020-12-05 18:17

    I'm assuming ItemsControl.Items[index] doesn't work, then?

    I'm not being funny, and I haven't checked for myself - that's just my first guess. Most often a control will have an items indexer property, even if it's databound.

提交回复
热议问题