小编P N*_*P N的帖子

WPF Popup UI显示黑色

我正在使用WPF Popup控件,它将背景显示为黑色.我把StackPanel放在它里面,背景="透明",但这没有帮助.

<Popup PlacementTarget="{Binding ElementName=parentStackPanel}" Placement="Center"
        IsOpen="False" Name="m_popWaitNotifier" PopupAnimation="None" 
        AllowsTransparency="False">
    <StackPanel Orientation="Vertical" Background="Transparent">
        <uc:CircularProgressBar x:Name="CB" StartupDelay="0"
                                            RotationsPerMinute="20"
                                            Height="25" Foreground="White"
                                            Margin="12"/>
    </StackPanel>
</Popup>
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我如何使Popup背景透明(或任何颜色)?

wpf user-interface popup

52
推荐指数
4
解决办法
3万
查看次数

标签 统计

popup ×1

user-interface ×1

wpf ×1