This is a migrated thread and some comments may be shown as answers.

How to handle wpf visibility=hidden in framework

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
cmmdmx
Top achievements
Rank 1
cmmdmx asked on 19 Feb 2016, 08:14 AM

Hi!

I have a problem: I want to check in a coded UI test, whether elements are visible or not. In WPF, they are declared as visibility=hidden, so a user couldn't see them. But the framework handles those elements as silverlight FrameworkElement. Silverlight only knows visibility=visible or collapsed. hidden is read as visible. Any idea how to fix this?

 

Thanks for help,

Max

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 22 Feb 2016, 09:51 AM
Hello Max,

Thanks for contacting us. 

That is one of the discrepancies between Silverlight and WPF. WPF visibility declarations could be visible, hidden and collapsed. As you mentioned these correspond in Silverlight to visible and collapsed. So what is required would be to change the visibility to collapsed so that it would be recognizable for your framework as well. 

Let me know if that helps you. 

Regards,
Elena Tsvetkova
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
cmmdmx
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or