如何设置窗口透明度
2011-06-08 11:33
411 查看
在MFC窗口中嵌入WPF控件时
Transparency settings. A top-level window can be configured to blend with the other windows on the desktop according to the per-pixel transparency of the WPF content. To enable this, set the UsesPerPixelOpacity property in the HwndSourceParameters to true. This can only be specified at construction time, and only through the HwndSource(HwndSourceParameters) constructor signature, and it imposes a number of limitations.
See :System.Windows.Interop.Hwndsource
独立的WPF窗口
Transparency settings. A top-level window can be configured to blend with the other windows on the desktop according to the per-pixel transparency of the WPF content. To enable this, set the UsesPerPixelOpacity property in the HwndSourceParameters to true. This can only be specified at construction time, and only through the HwndSource(HwndSourceParameters) constructor signature, and it imposes a number of limitations.
See :System.Windows.Interop.Hwndsource
独立的WPF窗口
<Window x:Class="Program.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" AllowsTransparency="False" Background="Transparent" > <Grid> </Grid> </Window>
相关文章推荐
- 如何设置sublime Text的窗口透明度
- 如何设置Ubuntu或Redhat下终端窗口的默认大小
- JAVA如何在为窗口设置背景图片
- unity3D导出exe文件,总是有个设置窗口,来设置分辨率和其他参数。如何删除掉这一步?
- 如何将一个Activity设置成窗口的样式
- JAVA如何在为窗口设置背景图片
- wpf中如何将窗口设置为透明
- 如何设置phpstorm同一窗口能打开多个项目目录
- Android 如何将一个Activity设置成窗口样式
- 如何将一个activity设置成窗口的形式
- 如何给应用程序中的某一个窗口部件单独设置样式表?一个小细节,要设置它的objectName。
- 如何设置Ubuntu下终端窗口的默认大小
- 控制台程序如何设置默认窗口位置?
- android 如何设置背景的透明度
- Qt给窗口或者控件设置透明度
- 如何设置MFC单文档主窗口的位置?
- C# 如何设置窗口的大小
- EAS 如何设置快捷键 弹出窗口
- 如何设置命令提示符窗口全屏
- MFC 设置窗口透明度