Skip to main content
Microsoft Silverlight
Home Forums Silverlight Programming Programming with .NET - General How to disable Grid StackPanel etc..?
3 replies. Latest Post by rathwale on October 16, 2009.
(0)
spiderma...
Member
226 points
289 Posts
03-30-2009 8:47 PM |
Hi, all
I have a lot of controls in my Grid.And I have some logic to make these controls disable.
So I have to make one by one.
Could we have some trick to disable all of these by one setting? Like setting Grid to disable?
Any Suggestions?
Thanks.
.netdan
Contributor
3480 points
519 Posts
03-30-2009 9:19 PM |
Hi, As you've seen there is no IsEnabled property on the Grid or StackPanel, however you could wrap all these controls up into a User Control or maybe a content control and then set the IsEnabled property of these to disable/enable your child controls.
Elashi
4 points
2 Posts
08-11-2009 8:02 AM |
Thanks .netdan
Your suggestion was helpful.. I derived another solution from yours:
Put your grid in a ContentControl ... ContentControl has an IsEnabled property
MohamedNo Certificates yet :)
rathwale
2 points
1 Posts
10-16-2009 5:39 PM |
Could you please copy/paste your solution..?
Thanks