Toggle and Cross Out StackPanel

I am trying to switch a small StackPanel on top of a large StackPanel: when the small StackPanel switches and appears visible, the large StackPanel on the back side is gray with an opacity color. Does anyone know how I can cut a whole StackPanel?

+3
source share
3 answers

You can try to disable StackPanel( stackPanel.IsEnabled = false;), then all children of this StackPanelwill also be disabled, which is usually perceived by controls as greyed out.

+6
source

H.B. Windows Phone 8.1. , <ContentControl x:Name="MyControl">. MyControl.IsEnabled = false; . .

+2

Try the following:

stackPanel.IsEnabled = false;
0
source

Source: https://habr.com/ru/post/1791976/


All Articles