小编Sub*_*dev的帖子

不透明度未应用于WPF Popup控件

Popup popUpControl = new Popup();

popUpControl.PlacementTarget = this; 
popUpControl.StaysOpen = true;
popUpControl.Child = new MyUserControl(); /// my user control 
popUpControl.Opacity = 0.5; // this code has no effect in the appearance of the popup
popUpControl.IsOpen = true;
Run Code Online (Sandbox Code Playgroud)

怎么做?

c# wpf popup opacity

4
推荐指数
2
解决办法
5663
查看次数

标签 统计

c# ×1

opacity ×1

popup ×1

wpf ×1