yadyn / Cosmopolitan-Theme-for-WPF

A port of the Cosmopolitan Theme, originally for Silverlight, into WPF.
http://www.silverlight.net/content/samples/sl4/themes/cosmopolitan.html
10 stars 5 forks source link

Resolve Theme #1

Open daw451 opened 13 years ago

daw451 commented 13 years ago

yadyn have you ever had an issue resolving the following themes:ScrollChrome.ScrollGlyph="DownArrow"?

I included, of course, the PresentationFramework.Aero in my project but no go???!?!??!

Also I have a ListView with a WrapPanel that wraps horizontally, but after the including the resources it seems that the wrappanel no longer wraps and shows a vertical scrollbar instead of a horizontal one. I know there is no style for the ListView but what would cause that?

Thanks Aaron

yadyn commented 13 years ago

The only control style that references that is in the ScrollBar style. I have not had any problems, since originally fixing ScrollViewer, with them, though.

I haven't had the opportunity to test ListViews or WrapPanels with the Cosmo theme yet, so I can't say for sure they work, but I haven't had problems with the ScrollChrome Aero theme stuff.

While you may not care about the app itself, you might take a look at my ItsBeen project. It uses the Cosmo theme xaml files in its WPF client portion and I've not had problems with the theme references. Looking at the WPF project right now in VS2010, I can see I've added an explicit project reference to PresentationFramework.Aero. Whether that explains why it works or not I can't say.

If you can give me some more details about your problem I might be able to help more. Are you getting any error messages, exceptions, anything? Is it a problem in the designer, at runtime, or both? If it isn't throwing an error, is it just not rendering correctly is all?

daw451 commented 13 years ago

Error 204 Assembly 'PresentationFramework.Aero' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 8 15 Miscellaneous Files Error 205 The type 'themes:SystemDropShadowChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 407 6 Miscellaneous Files Error 206 The type 'themes:SystemDropShadowChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 492 9 Miscellaneous Files Error 207 The attachable property 'ScrollGlyph' was not found in type 'ScrollChrome'. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 867 107 Miscellaneous Files Error 208 The attachable property 'ScrollGlyph' was not found in type 'ScrollChrome'. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 879 122 Miscellaneous Files Error 209 The attachable property 'ScrollGlyph' was not found in type 'ScrollChrome'. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 899 111 Miscellaneous Files Error 210 The attachable property 'ScrollGlyph' was not found in type 'ScrollChrome'. E:\WPF Themes\Cosmopolitan\WPF\CoreStyles.xaml 911 128 Miscellaneous Files

These are the errors that occur in the designer ONLY. At runtime I do not get any errors. Of course I have included the PresentationFramework and PresentationFramework.Aero.

daw451 commented 13 years ago

sorry caught the issue on this. Must be too much coffee today!

Just working now on the ScrollViewer to get that Vertical scrollbar to take that of the parent....

daw451 commented 13 years ago

I changed this piece: