Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered Getting started with resources

  • 29 июля 2012 г. 16:46
     
      С кодом

    I want to add the following code to a resource, such as "layoutrootstyle".  I cant even find a way to edit the file.  How do I do this?  Thanks.

    Daniel

    <Grid.Background>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#FF203844"/>
        			<GradientStop Color="#FF4B7489" Offset="1"/>
        		</LinearGradientBrush>
        	</Grid.Background>

Все ответы

  • 30 июля 2012 г. 16:50
    Модератор
     
     

    Hi Daniel,

    Which language are you using so we can get you to the right forum? The design forum is about what the UI design of the app should look rather than for code specific questions about how to achieve that look.

    --Rob

  • 30 июля 2012 г. 17:51
     
     

    Thanks Rob,

    I am using XAML and C#

    I am generally interested in how to work with resources, though my question was specific.  Bes practices, where to find them, etc.

  • 1 августа 2012 г. 2:26
    Модератор
     
     Отвечено

    I'm not sure what you are looking for here. From your code snippet I think you're asking about styling or templating controls and maybe using resource dictionaries, but I've no idea what you mean by having problems editing the file.

    Can you please explain more clearly what you are looking for here?

    For information on styling controls see Adding and styling controls. For an example of using a ResourceDictionary take a look at Create a "Hello, world" app

    --Rob