Hi,
I am doing research about how to test our silverlight app in a correct way, and one question what I would like know is how we should test composite control (for example MyInventoryView.xaml is a view wich contain a list of itemView.xaml using a ListBox)
something like:
<ListBox.ItemTemplate>
<DataTemplate>
<xyz:ItemView ... />
</DataTemplate>
</ListBox.ItemTemplate>
How I should get a list of these itemView objects?
The easy way to get a control when we know the name and the type is
itemViewSilverlightApp.Find.ByName<DataGrid>("myName");
But what is the way to get when we are talking about specific usercontrol? (shall we add a reference from the project wich has the specific usercontrol??)
Best Regards,
Rolando.
I am doing research about how to test our silverlight app in a correct way, and one question what I would like know is how we should test composite control (for example MyInventoryView.xaml is a view wich contain a list of itemView.xaml using a ListBox)
something like:
<ListBox.ItemTemplate>
<DataTemplate>
<xyz:ItemView ... />
</DataTemplate>
</ListBox.ItemTemplate>
How I should get a list of these itemView objects?
The easy way to get a control when we know the name and the type is
itemViewSilverlightApp.Find.ByName<DataGrid>("myName");
But what is the way to get when we are talking about specific usercontrol? (shall we add a reference from the project wich has the specific usercontrol??)
Best Regards,
Rolando.