Is there any way to disable all controls inside a container - grid for example? Thank you!
UPD: Although WPF’s Grid has IsEnabled property, there is definitely no IsEnabled property for Windows phone 7 Grid.
Is there any way to disable all controls inside a container - grid for example? Thank you!
UPD: Although WPF’s Grid has IsEnabled property, there is definitely no IsEnabled property for Windows phone 7 Grid.
Just set
<Grid IsEnabled="False">
<TextBox Width="100" Height="25"/>
</Grid>
And the TextBox will also be disabled.
Setting visual properties on a visual parent propagates to visual descendants. For example, setting opacity, the IsEnabled property, or setting a transform on the parent applies to the children as well.
See this link
Update
// Code behind
Grid grid = new Grid();
grid.IsEnabled = true;
Are you sure that it is a Grid that you are using?
Do you have any sample code?