Software rendering mode - WPF

前端 未结 3 439
野性不改
野性不改 2020-11-28 08:20

I have a WPF user control for which I need to force rendering in RenderMode.SoftwareOnly. Since I am using .NET 3.5, I had to do something like this:

<         


        
3条回答
  •  生来不讨喜
    2020-11-28 08:51

    You can also disable hardware rendering for the whole process by putting the next line in the application startup handler:

    RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
    

    It is also possible to switch during runtime

提交回复
热议问题