Wpf 获取控件句柄

 
 
 
 
HwndSource hwndSource = PresentationSource.FromVisual(YourImageControl) as HwndSource;  
 
if (hwndSource != null)  
{  
    handle = hwndSource.Handle;  
} 


vs2010 扩展包
http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef

猜你喜欢

转载自blog.csdn.net/z0582/article/details/7771998