WPF popup is always TOP_MOST
来源:百度文库 编辑:神马文学网 时间:2024/04/30 04:39:16
Hmmm... WPF popup is always TOP_MOST
Recently I have this bug inherited from my good intern that WPF
[DllImport("user32", EntryPoint = "SetWindowPos")]
private static extern int SetWindowPos(IntPtr hwnd, int hwndInsertAfter, int x, int y, int cx, int cy, int wFlags);
{
...
protected override void OnOpened(EventArgs e)
{
IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(this.Child)).Handle;
SetWindowPos(hwnd, -2, posX, posY, (int)this.Width, (int)this.Height, 0);
}
}
WPF popup is always TOP_MOST
Failure Is Always An Option
.One is always on a strange road
This is life that it always been
There is always a bigger fish
每日一句:Lily is always a happy camper.( 11.06 )
Latin America is not fated to always move to the radical left
Popup 类
WPF, WPF/E释疑
WPF概述
always getting over you
用Popup对象构建网页右键菜单
WPF中的传递事件
WPF Databinding----Collections
WPF性能优化点
WPF开发简介
WPF 路径标记语法
WPF中的动画.
对比MFC,winform,wpf
WPF分辨率的独立性
倒影测量员 | Always look inside
闲话WPF之二五(WPF中的ControlTemplate [3])
WPF入门一:搭建WPF的开发环境
闲话WPF之十七(WPF中的资源 [3])