WPF-Win32 Interop Part 2: Hosting Win32 Controls (ListBox) in WPF Windows

Introduction This article describes hosting of a Win32 user control in a WPF window. It is supplemented by the following two projects, which show working examples of the material presented in the document: Win32ControlInWpfWindow_CompositeWin32Messages Win32ControlInWpfWindow_SimpleWin32Messages The only difference between the two projects is the Win32ListBoxHost.cs file. The differences between the two versions of the file…

10

UI Scaling (UI Zooming) with WPF

WPF enables the application developer to apply arbitrary transforms to every UI element. This can be used to create dynamically scalable/zoomable UIs, enabling the end-user to scale the user interface of the application. Pulling off a dynamically scalable/zoomable UI is prohibitively difficult (and thus practically impossible) to do in classic Win32 (and by extension –…

18