WPF Style sheet

17 Apr 2007 - 10:28am
7 years ago
2 replies
1380 reads
Pawson, Mark
2007

I'm hoping the experts from the postings on Expression Blend can educate
me on this. Is their such a thing as a Windows Presentation Foundation
Style sheet?
I have been promoting our product development move towards a standard
CSS for our various apps. I have support from mgmt on this but then they
mentioned they were moving towards development in WPF and to ensure we
also develop a WPF standard. I am puzzled by this. My first question was
isn't their a tool that would take the CSS work and convert it? I don't
want to reinvent the wheel twice.

Thanks for all input.

Mark Pawson

Comments

17 Apr 2007 - 10:51am
Dave Malouf
2005

There isn't a style-sheet per se, but you can create various "brushes"
that can be applied to almost any object. It some ways there is some
huge power behind the differences, but basically you can create a
style object and the apply that style object to any other object and
when you change the original style object all objects that are using
it will reflect that change in real time.

Now, remember that this is done in XAML and Code (VB or C#), so it is
easy on the XAML (Blend side) to create the brush, but manipulating
the brushes across many objects and making changes to them is well
code and not as easy as using a DOM like you would with JavaScript.

If someone has a tutorial out there that explains this better, I know
I'd love to see it. ;)

-- dave

On 4/17/07, Pawson, Mark <Mark.Pawson at ihs.com> wrote:
> I'm hoping the experts from the postings on Expression Blend can educate
> me on this. Is their such a thing as a Windows Presentation Foundation
> Style sheet?
> I have been promoting our product development move towards a standard
> CSS for our various apps. I have support from mgmt on this but then they
> mentioned they were moving towards development in WPF and to ensure we
> also develop a WPF standard. I am puzzled by this. My first question was
> isn't their a tool that would take the CSS work and convert it? I don't
> want to reinvent the wheel twice.
>
> Thanks for all input.
>
> Mark Pawson
>
>
> ________________________________________________________________
> Welcome to the Interaction Design Association (IxDA)!
> To post to this list ....... discuss at ixda.org
> List Guidelines ............ http://listguide.ixda.org/
> List Help .................. http://listhelp.ixda.org/
> (Un)Subscription Options ... http://subscription-options.ixda.org/
> Announcements List ......... http://subscribe-announce.ixda.org/
> Questions .................. lists at ixda.org
> Home ....................... http://ixda.org/
> Resource Library ........... http://resources.ixda.org
>

--
David Malouf
http://synapticburn.com/
http://ixda.org/
http://motorola.com/

19 Apr 2007 - 2:01pm
Chris Bernard
2007

Resource Dictionaries allow you to specify uniquely identified control styles (like class or id selectors in CSS), or specify implicitly applied control styles (like element selectors in CSS).

However, WPF does not have the concept of compound selectors as found in CSS.

As for a tutorial I've passed on along to Dave and Mark that explains how this is done. The tutorial is not all prettied up for public consumptions but if anyone on the list needs it shoot me an email and I'll forward it to you.

Chris Bernard
Microsoft
User Experience Evangelist
chris.bernard at microsoft.com
312.925.4095

Blog: www.designthinkingdigest.com
Design: www.microsoft.com/design
Tools: www.microsoft.com/expression

-----Original Message-----
From: discuss-bounces at lists.interactiondesigners.com [mailto:discuss-bounces at lists.interactiondesigners.com] On Behalf Of David Malouf
Sent: Tuesday, April 17, 2007 11:52 AM
To: discuss at lists.interactiondesigners.com
Subject: Re: [IxDA Discuss] WPF Style sheet

There isn't a style-sheet per se, but you can create various "brushes"
that can be applied to almost any object. It some ways there is some
huge power behind the differences, but basically you can create a
style object and the apply that style object to any other object and
when you change the original style object all objects that are using
it will reflect that change in real time.

Now, remember that this is done in XAML and Code (VB or C#), so it is
easy on the XAML (Blend side) to create the brush, but manipulating
the brushes across many objects and making changes to them is well
code and not as easy as using a DOM like you would with JavaScript.

If someone has a tutorial out there that explains this better, I know
I'd love to see it. ;)

-- dave

On 4/17/07, Pawson, Mark <Mark.Pawson at ihs.com> wrote:
> I'm hoping the experts from the postings on Expression Blend can educate
> me on this. Is their such a thing as a Windows Presentation Foundation
> Style sheet?
> I have been promoting our product development move towards a standard
> CSS for our various apps. I have support from mgmt on this but then they
> mentioned they were moving towards development in WPF and to ensure we
> also develop a WPF standard. I am puzzled by this. My first question was
> isn't their a tool that would take the CSS work and convert it? I don't
> want to reinvent the wheel twice.
>
> Thanks for all input.
>
> Mark Pawson
>
>
> ________________________________________________________________
> Welcome to the Interaction Design Association (IxDA)!
> To post to this list ....... discuss at ixda.org
> List Guidelines ............ http://listguide.ixda.org/
> List Help .................. http://listhelp.ixda.org/
> (Un)Subscription Options ... http://subscription-options.ixda.org/
> Announcements List ......... http://subscribe-announce.ixda.org/
> Questions .................. lists at ixda.org
> Home ....................... http://ixda.org/
> Resource Library ........... http://resources.ixda.org
>

--
David Malouf
http://synapticburn.com/
http://ixda.org/
http://motorola.com/
________________________________________________________________
Welcome to the Interaction Design Association (IxDA)!
To post to this list ....... discuss at ixda.org
List Guidelines ............ http://listguide.ixda.org/
List Help .................. http://listhelp.ixda.org/
(Un)Subscription Options ... http://subscription-options.ixda.org/
Announcements List ......... http://subscribe-announce.ixda.org/
Questions .................. lists at ixda.org
Home ....................... http://ixda.org/
Resource Library ........... http://resources.ixda.org

Syndicate content Get the feed