i want to hide button in wpf i used in widows form ex : button.visible=false what 's equivelant to that in wpf ??
thank in advance
i want to hide button in wpf i used in widows form ex : button.visible=false what 's equivelant to that in wpf ??
thank in advance
You should set
button.visibility = System.Windows.Visibility.Hidden;
or
button.visibility = System.Windows.Visibility.Collapsed;
or by using the WPF XAML property set the same...
Try one of these:
button.Visibility = Visibility.Hidden;
button.Visibility = Visibility.Collapsed;
Hidden
hides the button but the button will still take up space in the UI. Collapsed
will collapse the button such that it has zero width and height.