CSS Styles in Silverlight

I know that SL style is possible in SL, but I have a large web application with HTML and SL, so it would be very useful if they could use the same stylesheet ... Is this possible? Thank.

+3
source share
3 answers

I would say no. If for some other reason than Microsoftโ€™s bad track record regarding CSS (even their leading generation of browsers is 10 years behind competing CSS implementations). The Word / Outlook engine is terrible in CSS. If silverlight supports CSS, you can bet it will be a breakfast for dogs.

SVG, on the other hand, supports CSS, so you can explore this as an alternative.

+2

Silverlight - -, -. Resource.XAML, Silverlight.

0

CSS and XAML are not compatible with sadness. In Silverlight, 'Stylesheets' are called ResourceDictionaries that live in a Silverlight project.

I created a free Silverlight theme that has several ResourceDictionaries, one for colors (Brushes.xaml) and one for styling controls. It might be worth downloading the project to see how it works: http://www.blackspike.com/site/silverlight/free-silverlight-4-beta-skin

0
source

Source: https://habr.com/ru/post/1750454/


All Articles