|
-
Aug 13th, 2008, 04:29 AM
#1
Thread Starter
New Member
StyleSheet in desktop application
Hi friends,
Here putting another problem...
can we use stylesheet in windows application i.e. desktop application. like we have css files in asp can we add that kind of style in windows appliation. so that i dont have to change every similar controls individually. instead just assign style to it and change it.
we can add css file to our project but how to write it and assign it to control....????
-
Aug 13th, 2008, 07:11 AM
#2
Re: StyleSheet in desktop application
I have not try that you you can go through with this example.
good luck
-
Aug 13th, 2008, 09:26 AM
#3
Re: StyleSheet in desktop application
You should look up Windows Presentation Foundation.
Styles and triggers in WPF:
http://www.microsoft.com/belux/msdn/...dtriggers.mspx
-
Aug 18th, 2008, 11:55 AM
#4
Re: StyleSheet in desktop application
This is very doable. You could even write your own class to parse Css files then on some sort of prerendering event, apply all of the appropriate styles to the different items.
Cool idea!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|