Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 1 result for App.xaml.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Denislav Savkov  on  Sep 01, 2008 (more than a year ago)

    Application static resources are used to declare instances of objects that should be alive and reusable throughout the whole life of an application. Usually as static resources are declared such things as styles, templates etc. Thus they can be used multiple times from multiple places within your Silverlight application.

    Xaml

       <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Class="SnackBites.App"
                    xmlns:local="clr-namespace:Bomb">
           <Application.Resources>
                   <Style x:Name="simpleStyle" TargetType="Button">
                       <Setter Property="Content" Value="Static style content"></Setter>
                   </Style>
           </Application.Resources>
       </Application>
    Note that for each resource you declare x:Name or x:Key should be specified!
    That's it!



Help us make SilverlightShow even better. 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 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)