我正在使用以下代码:
protected override void OnSourceInitialized(EventArgs e) { ... .... HwndSource source = PresentationSource.FromVisual(this) as HwndSource; ... ... }
在某些系统中,"源"值出现为空,我无法找到原因......
.net c# wpf interop hwndsource
.net ×1
c# ×1
hwndsource ×1
interop ×1
wpf ×1