How to show a preview of screen saver inside WPF window
问题 I want to be able to show a preview of a screen saver inside WPF window. (using a container or control or ...) I know that Windows itself passes "/p" argument to the screen saver to get a preview. But how can I show that preview inside my WPF application? Should I get a handle of it and change its parent to my container o control? How? 回答1: You need to use Windows.Forms interop, because screen savers expect windows handles (HWND) and in WPF, only top-level windows have them. MainWindow.xaml