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>- Перемещено Rob CaplanMicrosoft Employee, Moderator 30 июля 2012 г. 18:55 (From:UI Design for Metro style apps)
Все ответы
-
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
- Помечено в качестве ответа Min ZhuMicrosoft Contingent Staff, Moderator 7 августа 2012 г. 2:27

