Results 1 to 4 of 4

Thread: StyleSheet in desktop application

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    14

    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....????

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Thumbs up Re: StyleSheet in desktop application

    I have not try that you you can go through with this example.
    good luck

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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!
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width