Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toggle and grey out a StackPanel

Tags:

wpf

stackpanel

I am trying to toggle a small StackPanel on top of a large StackPanel: when the small StackPanel is toggled and show visible, the large StackPanel on the back is grey out with a opacity color. Does anyone know how can I grey out a whole StackPanel?

like image 871
KMC Avatar asked Dec 04 '22 23:12

KMC


1 Answers

You could try to disable the StackPanel (stackPanel.IsEnabled = false;), then all children of that StackPanel will also be disabled which normally takes the apprearance of greyed out controls.

like image 150
H.B. Avatar answered Dec 11 '22 07:12

H.B.