https://github.com/dotnet/wpf/issues/2169#issue-519605686 WinForms recently removed a bunch of API's - see dotnet/winforms#2157. Fixup WPF to adapt to this change.