Click here to Skip to main content
15,889,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am having and issue with wpf list box scrollbar theme on windows 8 machine. We have written a common style for ListBox and ListBoxItem in our resource dictionary which works nicely on windows 7 machine.

But when our wpf application is run on windows 8. the listbox scrollbars appears to be flat(it renders the windows 8 default theme). The same issue occurred with combobox. The wpf combo box appeared flat on windows 8 machine.

For this we wrote the following code and it worked for combo box:
C#
Uri uriMerge = new Uri("PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component\\themes/aero.normalcolor.xaml", UriKind.Relative);
                Resources.MergedDictionaries.Add(Application.LoadComponent(uriMerge) as ResourceDictionary); 


But this code doesnt seem to work for listbox scrollbar. It still appears flat style or windows 8 style.

What are we missing ? Any help would be great.

Regards,
Praneet
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900