Hi BogeyLab,
Hum, this is strange that setting handled = true into SC_MOVE didn't prevent the floating window from being moved around. I can move the floating Window, but as soon as I drop it, I can't move it anymore because I set handled = true into SC_MOVE.
For the rest, yes, this was a project requirement to support WinForms control, so HwndHost was used in floating Windows. If you are using plain WPF, you can just remove the "CoerceContentValue" callback. Floating Window default ContentPresenter will take care of setting its content properly. I didn't fully test this modification, but I would say you can use it this way. I don't see any side effects until now.
Hum, this is strange that setting handled = true into SC_MOVE didn't prevent the floating window from being moved around. I can move the floating Window, but as soon as I drop it, I can't move it anymore because I set handled = true into SC_MOVE.
For the rest, yes, this was a project requirement to support WinForms control, so HwndHost was used in floating Windows. If you are using plain WPF, you can just remove the "CoerceContentValue" callback. Floating Window default ContentPresenter will take care of setting its content properly. I didn't fully test this modification, but I would say you can use it this way. I don't see any side effects until now.