Skip to main content

Answered Question How to disable Grid StackPanel etc..?RSS Feed

(0)

spiderman110
spiderma...

Member

Member

226 points

289 Posts

How to disable Grid StackPanel etc..?

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
.netdan

Contributor

Contributor

3480 points

519 Posts

Answered Question

Re: How to disable Grid StackPanel etc..?

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.

Remember to click "Answer" if this has helped you!

Dan Birch
MCSD, MCAD, MCP
Free Silverlight Games and Controls | Free .NET Silverlight CMS

Elashi
Elashi

Member

Member

4 points

2 Posts

Re: How to disable Grid StackPanel etc..?

Thanks  .netdan

Your suggestion was helpful.. I derived another solution from yours:

Put your grid in a ContentControl ... ContentControl has an IsEnabled property

 

Mohamed
No Certificates yet :)

rathwale
rathwale

Member

Member

2 points

1 Posts

Re: Re: How to disable Grid StackPanel etc..?

Could you please copy/paste your solution..?

Thanks

- Ricky
  • Unanswered Question
  • Answered Question
  • Announcement