zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

在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窗口

<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>

posted on 2011-06-08 11:33  zip's  阅读(1168)  评论(0编辑  收藏  举报