WPF 窗体设置AllowsTransparency=true是 panel视频不能显示

2021-03-03 18:28

阅读:1228

标签:bind   hidden   host   height   parent   binding   row   显示   ica   

 AllowsTransparency=true是加载winform:panel,控件不显示:原因窗体的逻辑和渲染冲突

 

                              Width="{Binding ElementName=grid,Path=ActualWidth}"
                              Height="{Binding ElementName=grid,Path=ActualHeight}"
                           Visibility="Hidden">
           
 

 

解决:添加Popup将控件至于顶层  Popup ,并且AllowsTransparency="False"

     
                                                               Visibility="Visible" Background="#e0e0e0" >
                           
                       

                   

                

WPF 窗体设置AllowsTransparency=true是 panel视频不能显示

标签:bind   hidden   host   height   parent   binding   row   显示   ica   

原文地址:https://www.cnblogs.com/qlbky/p/12966807.html


评论


亲,登录后才可以留言!