c# - How to define your own Windows 8 App Theme? -
I'm doing some basic research for a school assignment, how I followed the Windows 8 Store app development work. The main apps you can use for the app, light and dark (and if I'm right then one-third is high contrast or something else), they are defined by MS.
My question is, how can I make my own topic? I would like an original app theme with two main colors defined by me, I think it would be possible, but I could not find any way to do this. Here the stack is seen overflow, but nothing is found useful (most files are mentioned and such simple Hello does not exist in the World app).
In short: it is possible for you to make theme for Windows 8 app (mainly selecting foreground and background color), can be compared to standard and dark and light subjects?
It's best to use resource dictionary to keep information on your custom styles.
(This is a WPF example, I assume that this is similar to this app, if not, then let me know).
In your Then you will need to create a Resource dictionary (in my example, I put it in Style / CoreStyle.xaml) Then you style your personal elements You can create a project, for example, setting a There is more information on which I would like to read. App.xaml , add a merged dictionary, so your App.xaml might look like this:
& lt; Application.Resources & gt; & Lt; ResourceDictionary & gt; & Lt; ResourceDictionary.MergedDictionaries & gt; & Lt; Source source = "style / core style / XML" /> & Lt; /ResourceDictionary.MergedDocs> & Lt; / ResourceDictionary & gt; & Lt; /Application.Resources>
minwidth on a button will look something like this:
& lt; Resource-source xmlns = "http://schemas.microsoft.com/winfx/ 2006/xaml/production" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" & gt; & Lt; Style TargetType = "{x: type button}" & gt; & Lt; Setter property = "minwid" value = "75" /> & Lt; / Style & gt; & Lt; / ResourceDictionary & gt;
Comments
Post a Comment