Hide WPF elements in Visual Studio designer

后端 未结 7 1854
暗喜
暗喜 2020-11-30 08:39

I have a WPF form which basically looks like this:


  
    
      [content shown during normal operation]
             


        
7条回答
  •  一向
    一向 (楼主)
    2020-11-30 09:05

    I ran into a similar problem recently.

    I am using a Rectangle to obscure the main window during a modal dialog's execution. I have the Visibility data bound, but the Rectangle made the designer unusable. I mad the Z index a one time data bind, and a fallback value was lower than the window I wanted to obscure. When the application starts up, the Rectangle's Z index is bound to a higher value than the window.

提交回复
热议问题