Hi all,
I'm trying to create UI automation test for my silverlight app and I have a problem.
There is ItemsControl with VirtualizingStackPanel where I show some items.
Firstly the ItemsControls contains 40 items and then I use search that limits the number of items.
But when I look the property "Children" of VirtualizingStackPanel it still has 40 elements.
I tried to call the method "Refresh" (of the virtualizing stack panel).
Tried to call App.RefreshVisualTrees().
But nothings helps.
I'm sure that the tree contains only 1 element (I see it using XAML Spy).
But VirtualizingStackPanel still has 40 elements.
Does anybody know some way to force "true"-refresh?
The version I currently use: 2013.2.1327.0
Thanks in advance for any help,
Artem
I'm trying to create UI automation test for my silverlight app and I have a problem.
There is ItemsControl with VirtualizingStackPanel where I show some items.
Firstly the ItemsControls contains 40 items and then I use search that limits the number of items.
But when I look the property "Children" of VirtualizingStackPanel it still has 40 elements.
I tried to call the method "Refresh" (of the virtualizing stack panel).
Tried to call App.RefreshVisualTrees().
But nothings helps.
I'm sure that the tree contains only 1 element (I see it using XAML Spy).
But VirtualizingStackPanel still has 40 elements.
Does anybody know some way to force "true"-refresh?
The version I currently use: 2013.2.1327.0
Thanks in advance for any help,
Artem