简体   繁体   中英

Handle Theming Issues between Win XP and Win 7 machines in .NET

My WPF app which is hosted in winform app shows the dersied highlighted color of a selected Xamdatagrid row in Win XP, however when run on Win 7 machine the color changes to lighter shade rendering the highlighted row as unreadable.

Any guidelines to approach this.

That is because you are using system defined colors. I'm afraid you have to introduce your own theming:

http://wpfthemes.codeplex.com/

Of course you can still use the colors you want by just creating a custom theme.

You can also try to force using specific windows theme:

http://arbel.net/2006/11/03/forcing-wpf-to-use-a-specific-windows-theme/

(Luna is WinXp)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM