窗体:
IntPtr hwnd = new WindowInteropHelper(this).Handle;


控件:
IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(uielement)).Handle;

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-12-12
相关资源
相似解决方案