Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 5 results for style.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 2 comments  /  posted by  Pencho Popadiyn  on  Nov 24, 2009 (6 months ago)

    Introduction

    Only three months after the release of the latest official version of Silverlight 3, a new beta version – Silverlight 4 is already a fact. There are a lot of new things, which deserve to be mentioned, such as Rich Text, drop target, webcam, microphone, etc. Check out the official Silverlight site for more information. However, in this article I decided to show you one very interesting feature, which is taken from WPF, namely it is the implicit styles feature.
    What was the situation till now? Whenever you’ve created a style  in Silverlight, you were obligated to specify the TargetType as well as an unique Key/Name for the style.



  • 7 comments  /  posted by  Boyan Mihaylov  on  Sep 20, 2009 (8 months ago)

    Introduction

    One of the main concepts, when you work over a complex (or not so) project, is “divide and conquer”. This is the need of splitting the whole project into small and reusable parts, called controls. Having lots of these smaller parts, you can easily manage them in a view (page, window, etc).

    People who have worked with WinForms and ASP.NET are already familiar with this idea. It is realized both in WPF and Silverlight as well. Each control has its own behavior and style. The look and feel of each control can be tweaked through styles or can be entirely redesigned through templates, and the behavior of controls can be modified through event handlers.

  • New Line of Business Applications Done with Silverlight

    0 comments  /  posted by  Silverlight Show  on  Feb 12, 2009 (more than a year ago)
    Tags: Line-Of-Business , Style , application , Silverlight

    Ronnie Saurenmann from the Swiss MSDN Team has posted three very impressive Line of Business style applications which are available to try out. This is some kind of continuation of a blog post that Ronnie wrote in August which included some interesting demos of Silverlight for LOB.

    These applications are very good example why I belive Silverlight has such a huge potential for LOB solution, especially compared to ASP.NET/Ajax based one.

  • 0 comments  /  posted by  Silverlight Show  on  Feb 09, 2009 (more than a year ago)

    Radenko Zec has an article on styling Silverlight datagrid control in which he explains how to modify default Silverlight datagrid control look.

    Radenko:

    I hope that this article will be good starting point for you to create your own styles for dataGrid control.

  • 1 comments  /  posted by  Ivan Dragoev  on  Nov 13, 2008 (more than a year ago)

    Styling control is a very easy way to tweak the minor visual characteristic of the control such as foreground and background colors, the font style and size, padding, etc. Usually the styles are stored as resources which allows you to reuse them whenever you want.

    The Style has TargetType specifying the type of the object the style can be applied to and a key used to identify the style. The Style contains numerous Setters, which describe the values which you want to set to specific properties.

    To apply style to a control simply specify the Style property of the control to point to the static resource with a specific key name.

       1: <Grid>
       2:     <Grid.Resources>
       3:         <Style TargetType="Button" x:Key="myButtonStyle">
       4:             <Setter Property="Width" Value="100" />
       5:             <Setter Property="Height" Value="25" />
       6:             <Setter Property="Foreground" Value="#FF87091F"/>
       7:             <Setter Property="Padding" Value="2"/>
       8:             <Setter Property="BorderThickness" Value="4"/>
       9:             <Setter Property="FontWeight" Value="Bold" />
      10:             <Setter Property="FontFamily" Value="Portable User Interface" />
      11:         </Style>
      12:     </Grid.Resources>
      13:     <Button Content="Click Me!" Style="{StaticResource myButtonStyle}">
      14:     </Button>        
      15: </Grid>

     That's it!


Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)