Answered by:
WPF Css and Styles

Question
-
Hi I am new to WPF .Can help me some one to understand the CSS and WPF sytles in details or ant thing like themes are there in WPF ?Wednesday, April 27, 2011 10:25 AM
Answers
-
Hello,
Here are some articles to get you started:
http://www.wpftutorial.net/Styles.html
http://www.scottlogic.co.uk/blog/colin/2009/03/using-css-selectors-for-styling-in-wpf/
http://www.tanguay.info/web/index.php?pg=howtos&id=5
http://www.codeproject.com/Articles/36499/Using-CSS-Selectors-for-Styling-in-WPF.aspx
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b2cc6297-2c00-4ce0-a99d-36a2e7b2c4b0
http://www.kirupa.com/blend_wpf/custom_wpf_windows.htm
Also, here are some nice WPF themes from codeplex: http://wpfthemes.codeplex.com/. I'm sure you might want to check them out ;)
Cornel Croitoriu - Senior Software Developer & EntrepreneurIf this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
- Proposed as answer by Mohammad Atiour Islam Wednesday, April 27, 2011 12:46 PM
- Marked as answer by vinwindeo Thursday, April 28, 2011 6:09 AM
- Unmarked as answer by vinwindeo Thursday, April 28, 2011 6:10 AM
- Marked as answer by Jie Bao Wednesday, May 4, 2011 10:59 AM
Wednesday, April 27, 2011 12:11 PM -
Please note the CSS and the WPF are two different technologies. We cannot say we could use the same code in both. But as we knoe, if you have understood CSS and WPF both, we could try to convert one theme from CSS to WPF. As Cornel shared, these links can help you to learn the style in WPF. Of couse, MSDN provides the official document Style: http://msdn.microsoft.com/en-us/library/ms745683.aspx
I also recommend you to buy some books about WPf to learn it, such as [Programming WPF], [WPF 4 Unleashed] etc.
Sincerely,
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Jie Bao Wednesday, May 4, 2011 10:59 AM
Saturday, April 30, 2011 6:32 AM
All replies
-
Hello,
Here are some articles to get you started:
http://www.wpftutorial.net/Styles.html
http://www.scottlogic.co.uk/blog/colin/2009/03/using-css-selectors-for-styling-in-wpf/
http://www.tanguay.info/web/index.php?pg=howtos&id=5
http://www.codeproject.com/Articles/36499/Using-CSS-Selectors-for-Styling-in-WPF.aspx
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b2cc6297-2c00-4ce0-a99d-36a2e7b2c4b0
http://www.kirupa.com/blend_wpf/custom_wpf_windows.htm
Also, here are some nice WPF themes from codeplex: http://wpfthemes.codeplex.com/. I'm sure you might want to check them out ;)
Cornel Croitoriu - Senior Software Developer & EntrepreneurIf this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
- Proposed as answer by Mohammad Atiour Islam Wednesday, April 27, 2011 12:46 PM
- Marked as answer by vinwindeo Thursday, April 28, 2011 6:09 AM
- Unmarked as answer by vinwindeo Thursday, April 28, 2011 6:10 AM
- Marked as answer by Jie Bao Wednesday, May 4, 2011 10:59 AM
Wednesday, April 27, 2011 12:11 PM -
Please note the CSS and the WPF are two different technologies. We cannot say we could use the same code in both. But as we knoe, if you have understood CSS and WPF both, we could try to convert one theme from CSS to WPF. As Cornel shared, these links can help you to learn the style in WPF. Of couse, MSDN provides the official document Style: http://msdn.microsoft.com/en-us/library/ms745683.aspx
I also recommend you to buy some books about WPf to learn it, such as [Programming WPF], [WPF 4 Unleashed] etc.
Sincerely,
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Jie Bao Wednesday, May 4, 2011 10:59 AM
Saturday, April 30, 2011 6:32 AM