Can we use CSS in a Silverlight project - silverlight

I have a problem. I want to make a web application using silver light. I just want to know that can I use a css in this, because I read the the designing of silver light is in the xaml or we use css with html tag.
Is anybody clear my confusion?
Thanks

Silverlight XAML ≠ HTML+CSS
These are all different technologies. You probably better know Adobe Flash. Well Silverlight is very similar. It (may) run in the context of a browser, but it has nothing to do with HTML and/or CSS. It uses XAML files (as you pronounce them zammel). So if you decide to write a Silverlight application you will have to use XAML files and use Expression Blend to design your UI. Doing so would be faster than hand editing XAML files.

xaml is like html + css but its not the same , they have some things in common but nothing much important .
Better find yourself good video tutorials or a book and learn it from there :)

No you can't really use CSS in a silverlight project.
If it's worth the effort, what you could do is manually load the required CSS files with the WebClient class and parse them to style your controls accordingly.
Someone did something similar with the Sharepoint theme files, which are yet another format. Using SharePoint thmx files to style Silverlight describes how to do it. Maybe you can find some inspiration from that.

Related

Where to find a free style for my WPF applicaton?

I am not happy with the default style of my application and I'd like to add a style that makes it look more professional. I downloaded some themes but the ones I found kinda ruined my window interfaces.
Any idea where to find free recent WPF styles?
There does not exist anything like this, what you are describing. You can get Windows themes, which will impact your whole OS but also your application if you have been using system colors while developing.
There is no magic formula that would know how to style which button. This is something you have to implement on your own.
What you can do is to learn more about how to properly style an application using styles from from a external . In order to make your application more appealing you can download a color pallet and follow it. The designing you will, still, have to do on your own.
There are themes pre-made available on the internet. : http://brianlagunas.com/free-metro-light-and-dark-themes-for-wpf-and-silverlight-microsoft-controls/
You need to add them to you project.

How to easly integrate a Silverlight application into Dynamics CRM in regards of the look and feel / UI style

How to apply the crm look and feel to a silverlight application? How can I apply those CSS Styles to the silverlight UI?
Unfortunately, you can't. Silverlight has no support for css. I suppose it is possible to write some sort of css parser that translates the values you need into XAML Styles that Silverlight can use. But that would be a lot of work, unless you are 100% certain that your css is very simple and only uses a few known style attributes, which I think will not be the case for that CRM system. Since you are asking for a way to "easily integrate...", the answer has to be no. There is no easy way.

Bread-crumb style navigation for Winforms

Does anybody know of a bread-crumb style navigation for Winforms like the one from DotNetBar.
http://www.devcomponents.com/dotnetbar/BreadCrumbHorizontalTreeControl.aspx
I really like that control. However I am using a other UI library already and just for this control I do not want a reference to another 4 MB lib. I just need this control. Does anybody if something like this is available as a standalone control?
I have used the Bread Crumb control of Krypton Toolkit, but you mentioned, that you don´t want an other UI library.
But maybe this source can help you, to build your own Bread Crumb control Creating A Breadcrumb Control
Try this one i haven't used it but (i use the one from Krypton) but i guess it will be good for you.
The one Jehof gave you is way better.
However take a look at Krypton suite, i always use it with the DevExpress XtraEditors. together you can create some great looking apps. i know you said that you don't want a huge library, but it's worth it.

Is there any way of getting a XAML Editor, either build or download?

In my current project (presentation, slide software) I need to be able to make some simple XAML, text images, movies and stuff like that.
If it were HTML I would go with fckeditor or another free editor, but what to do in XAML?
Anyone know if its possible to make one yourself (like executecommand to a IE)? or download one from anywhre on the net?
Cheers
Take a look at this question: Designing WPF Windows for Free?
The leading answer recommends Kaxaml, XAMLpad and several more options.

Is there any way to share resources in a Silverlight library project?

In a silverlight application you have App.xaml, but in a Silverlight library you don't. I tried using generic.xaml but I think this serves the specific purpose of applying styles to all controls based on their type. In case, I just want a place to put things like paths or objects that I will reuse throughout the library.
Take a look at the Silverlight Toolkit's SharedResources.cs file, it's a little hacky but may help with your scenario.
It isn't the same as sharing XAML resources, but it may help you get access to images and other embedded content types.

Resources