Accessing ItemsControl Items in C# (Unity)
Posted: 19 Jan 2016, 04:48
Hi there,
I need to iterate through the Items of an ItemsControl in C# (as UIElements, like Panel Children).
All of the examples I have found for WPF use a variation of this code:
But ItemContainerGenerator.ContainerFromIndex does not exist in the Noesis ItemsControl class.
What is the best way of doing this in Noesis?
Thanks,
Mark
I need to iterate through the Items of an ItemsControl in C# (as UIElements, like Panel Children).
All of the examples I have found for WPF use a variation of this code:
Code: Select all
for(int i = 0; i < itemsControl.Items.Count; i++)
{
UIElement uiElement = (UIElement)itemsControl.ItemContainerGenerator.ContainerFromIndex(i);
}
What is the best way of doing this in Noesis?
Thanks,
Mark