Why do WPF Applications look different between Windows 7 and Windows 8 and can this be fixed?

前端 未结 4 460
無奈伤痛
無奈伤痛 2021-01-31 10:13

I\'m really surprised that this question does not appear to have been asked yet... if it has, but I just couldn\'t find it, apologies.

Ok, so my work computer has just b

4条回答
  •  温柔的废话
    2021-01-31 10:46

    Your problem may be related to this

    There is currently a bug within the WPF ribbon library, which causes the Windows 8 theme not to apply if a ribbonwindow is being used.

    Furthermore Windows 7 and 8 use simply different styles for their Controls such as Textboxes. When developing for multiple platforms, be it only Windows, you must be aware that sizes, margins and paddings change. Instead of absolute values you should let the controls dictate their need for space by avoiding setting explicit heights or widths altogether.

提交回复
热议问题