Mask all window / canvas elements with C # / WPF

How do I create a mask to cover ALL Windows / Canvas elements (with subcanvations / elements inside)?

Thanks in advance

EDIT: I want to add more controls / items / whatever after . I am creating a mask. This is normal? How?

0


a source to share


1 answer


I'm not sure if you need to "mask" the controls. Why aren't you using the visibility property?

For example, if you have a stackPanel and want to mask it and its contents, just put



<StackPanel Visibility="Hidden">
...
</StackPanel>

      

This way you can control the visibility of each widget. If you want to "add" or make others visible, just set the "Visible" property.

0


a source







All Articles