Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide Control In Code Behind
Message
De
18/05/2010 02:36:13
 
 
À
18/05/2010 02:32:36
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01464957
Message ID:
01464971
Vues:
38
>>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....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform