Bookmark and Share Share...    Subscribe to this feed Feed   About Christian Moser  

How to get the Handle of a WPF Window

IntPtr windowHandle = new WindowInteropHelper(

How to manually set the rendering mode to software

var 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 article

Show all comments
Commented on 14.November 2010
Can you provide more details on interoperability. Like how to use OCX files, Active X DLL created in VC++ in WPF applications.

E-Mail (optional)