WPF MainWindow设置背景透明仍然显示黑色Black问题

<Window ...
        AllowsTransparency="True"
        Foreground="{x:Null}"
        Background="{x:Null}"
        FocusVisualStyle="{x:Null}">

 注意要设置AllowsTransparency=true,允许透明色,否则就是黑色

posted @ 2021-05-23 18:08  microsoft-zhcn  阅读(443)  评论(0)    收藏  举报