Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Build Action - DefaultStyle - Is this a new Visual Stud... RSS

7 replies

Last post Jan 14, 2009 03:37 PM by m.wawrusch

(0)
  • vplusplus

    vplusplus

    Member

    10 Points

    12 Posts

    Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default style f...

    Dec 23, 2008 12:25 AM | LINK

     

    My current understanding around providing default style to Silverlight custom controls is to add Generic.xaml under Themes folder and pile default styles of all custom contols in that assembly.

    I noticed the controls in Silverlight Toolkit have the default styles along side with control. For example Label.cs and Label.xaml are in the same folder and Label.xaml has a build action "Default Style". I can't find the build action if I create a standard Silverlight library project. (I am using VWD Express 2008)

     Is this a Visual Studio Extension built by the toolkit team?

     

     

     

     

     

     

     

    Silverlight 2 Custom Control

  • bryant

    bryant

    Star

    10113 Points

    1662 Posts

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Dec 23, 2008 03:02 AM | LINK

    Justin would know, but I dug into this a lot when they first released it and came to the conclusion they just included those files for reference. Could be wrong though. Justin?

    -- bryant

    Blog | Twitter
    _________________
    Dont forget to click "Mark as Answer" on the post that helped you.
  • vplusplus

    vplusplus

    Member

    10 Points

    12 Posts

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Dec 23, 2008 01:24 PM | LINK

    I compiled the Toolkit source and received no errors. (Didn't test the self-compild version to check if default styles apply)

    Such arrangement of styles will be very valuable for conrol developers as default styles of each control can be organized across multiple files, preferably closer to control implementation. I suspect, the toolkit team built a custom build action for solving the problem.

    It will be a great help to the community if the toolkit team can share the custom build action (source and/or binary).

     

     

     

     

  • m.wawrusch

    m.wawrusch

    Member

    22 Points

    18 Posts

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Jan 10, 2009 01:32 PM | LINK

    vplusplus

    It will be a great help to the community if the toolkit team can share the custom build action (source and/or binary).

    I  definitely agree on that.

  • JWilcox

    JWilcox

    Participant

    1106 Points

    195 Posts

    Microsoft

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Jan 10, 2009 06:26 PM | LINK

    Hi, The custom build action is something that we just built as part of our engineering infrastructure on the team. I'll ask around. -Jeff
    Senior Software Development Engineer ~ Silverlight for Windows Phone

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • JWilcox

    JWilcox

    Participant

    1106 Points

    195 Posts

    Microsoft

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Jan 14, 2009 06:48 AM | LINK

    Blogged and released at http://www.jeff.wilcox.name/2009/01/default-style-task/ This should answer the question! - Jeff
    Senior Software Development Engineer ~ Silverlight for Windows Phone

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • bryant

    bryant

    Star

    10113 Points

    1662 Posts

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Jan 14, 2009 03:27 PM | LINK

    Thanks Jeff! That's great.

    -- bryant

    Blog | Twitter
    _________________
    Dont forget to click "Mark as Answer" on the post that helped you.
  • m.wawrusch

    m.wawrusch

    Member

    22 Points

    18 Posts

    Re: Build Action - DefaultStyle - Is this a new Visual Studio Extension for providing default sty...

    Jan 14, 2009 03:37 PM | LINK

    Thanks!!! That helps us tremendously