Control Styles and Templates for Windows 8 Metro-U

2020-02-11 09:00发布

问题:

I've met some issue with the visual appearance of my C#/XAML Metro-UI application. I want to customize default template. For another type of applications, I can take default styles and controls from MSDN articles. For example:

  • Control Styles and Templates for WPF
  • Control Styles and Templates for Silverlight

Where can I find something similar for Metro-UI default styles and templates?

I know that is possible to extract template or style in Expression Blend. But I get the issue with my Blend for Visual Studio 11 described in the next thread.

回答1:

I found it!

Folder c:\Program Files\Windows Kits\8.0\Include\winrt\xaml\design\ on my PC(x86) contains generic.xaml that has description of each default styles and controls.



回答2:

ThemeResources.xaml contains the resource dictionaries for the Dark (Default), Light and HighContrast themes while Generic.xaml contains the default styles and templates for most of the xaml controls.