获取WPF控件句柄的方法

using System.Windows.Interop; 

 

//使用WindowInteropHelper类可以获得窗体句柄 

int handle = new WindowInteropHelper(this).Handle.ToInt32();

posted @ 2010-07-20 21:43  XiaoK  阅读(2515)  评论(1编辑  收藏  举报