Windows Forms window changes its size when I create a WPF window

后端 未结 3 1346
别跟我提以往
别跟我提以往 2020-12-02 01:46

I have a System.Window.Forms.Form where I handle every button click. When I receive the first event I create a new WPF System.Windows.Window object

3条回答
  •  难免孤独
    2020-12-02 02:32

    As stated in other replies that is because of the DPI awareness. A quick fix to turn it off for those using VB.NET:

    Open the app.manifest

    And then uncomment this part and set the DPI awareness to false:

    Note that this might cause your application's fonts to look more blurry on higher DPI devices.

提交回复
热议问题