Fixed wpf not compiling.
Merge branch 'master' of https://git.ktxsoftware.com/git/KOM/Kha
Merge https://git.ktxsoftware.com/r/KOM/Kha
WPF merge fix.