#644 – Disabling and Hiding Controls
September 11, 2012 1 Comment
You can disable a control by setting its IsEnabled property to false. Disabled controls cannot receive input, but are still displayed in the user interface, typically greyed out.
Below is an example of some typical controls, showing what they looked like when enabled vs. disabled.
In addition to disabling a control, you can also make the entire control invisible, using the Visibility property. Controls that are not visible can be one of:
- Hidden – Control is not visible, but it still takes up space in the user interface. I.e. There is whitespace where the control would be if it were visible
- Collapsed – Control is not present at all in the user interface and neighboring controls fill in the space where the control would be if it were visible
Pingback: Dew Drop – September 11, 2012 (#1,398) | Alvin Ashcraft's Morning Dew