Reputation: 1489
Can someone please provide an example of how to grey out a button control?
I have tried DownloadButton.IsDisabled
and don't know what else to try.
Upvotes: 31
Views: 79631
Reputation: 2666
Use this to disable a control:
DownloadButton.Enabled = false;
Use this to hide it entirely:
DownloadButton.Visible = false;
Upvotes: 10
Reputation: 41
DownloadButton.Enabled = false;
This will disable the button and make it fade out.
Upvotes: 4
Reputation: 345
DownloadButton.Enabled = false;
Above code disables the button (It looks gray, and can't receive the click event)
Hope this is helpful!!
Upvotes: 17