Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide Control In Code Behind
Message
From
18/05/2010 02:36:13
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01464957
Message ID:
01464971
Views:
39
>>This time you have to admit - this is just plain stupid!
>>
>>WTF is there no Visible property on a user control in WPF?????
>
>Because they replaced it with something better :-}
>
>>How do you hide a control in the code behind?
>
>See the UIElement.Visibility property.
>Vivsiblility.Hidden means it will not render but will occupy the same space.
>Visibility.Collapsed frees up the space it would otherwise occupy so that it can be used by other controls.
>Visibility.Visible means .........

IsHitTestVisible is also useful....
Previous
Reply
Map
View

Click here to load this message in the networking platform