|
|||||||||||||
How to get the Handle of a WPF WindowIntPtr windowHandle = new WindowInteropHelper( Application.Current.MainWindow).Handle; How to manually set the rendering mode to softwarevar source = PresentationSource.FromVisual(this); var hwndTarget = source.CompositionTarget as HwndTarget; if (hwndTarget != null) { hwndTarget.RenderMode = RenderMode.SoftwareOnly; }
Last modified: 2010-07-06 16:40:47
Copyright (c) by Christian Moser, 2011.
Comments on this articleShow all comments
|
|||||||||||||