Reputation: 1931
I using silverlight in my siverlight page I want to disable all the controls.
I want to disable the entire page instead disabling the individual control.
Upvotes: 1
Views: 949
Reputation: 1931
Here goes the Answer..
<ContentControl x:Name="GroupOfControls" >
<Grid x:Name="LayoutRoot" Background="White">
'Design your own controls
</Grid>
</ContentControl>
Insert your Grid in the content control then you can enable or disable all the controls on the silverlight page
GroupOfControls.IsEnabled = False
GroupOfControls.IsEnabled = True
Upvotes: 2
Reputation: 784
Setting the IsEnabled
property to false of the parent control should disable child controls.
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.isenabled(v=vs.95).aspx
Upvotes: 0