Why does overriding the WPF [removed] method fail to draw to the screen?

后端 未结 4 1798
面向向阳花
面向向阳花 2021-02-08 00:02

I noticed that when overriding the System.Windows.Window OnRender method fails to draw to the screen. I\'m sure there\'s a good reason for this but was unable to find the explan

4条回答
  •  长发绾君心
    2021-02-08 00:17

    The answer is given by Chales Petzold here.

    His answer is 'don't know why', however a comment correctly suggests that setting the window's Background to transparent fixes the bug.

提交回复
热议问题