Directory:
Metro Style Controls
Metro Themes
Mahapps.metro Document Address: http://mahapps.com/MahApps.Metro/
Source Address: Https://github.com/MahApps/MahApps.Metro
In VS, you can install a NuGet plugin to download MahApps.Metro.dll and MahApps.Metro.Resources.dll.
The Mahapps.metro document is written in great detail. You can learn how to use it first. Look down on this article.
The documentation also gives some examples:
- Windows Phone Power Tools
- Xamlspy
Metro Style Controls
Mahapps.metro has about 16 custom controls.
1. Appbarbutton inherits the button, adding the properties of the visual class on the button. Used to change the visual interface.
2. Layoutinvalidationcatcher the space required to map child in the logical tree.
3, Metrocontentcontrol This control is mainly in the TabControl switch, give it some switch animation. This additional property must also be combined with reloadbehavior.onselectedtabchanged.
4, Metroimage This appbarbutton similar, just template style different.
5, Metroprogressbar inheritance ProgressBar, that is, the progress bar template rewrite. Animated, similar to the loading effect.
6, Panorama inherit from ItemsControl, set the height of item, width and animation effect.
7. Panoramaitem is a custom control that inherits from the ContentControl, and he adds the Header,headeropacity,headertemplate,orientation dependency property.
8. Planerator controls the rotation of the child controls.
9, Progressindicator and Metroprogressbar similar, is also a kind of loading animation control. Progressindicator is primarily written in XAML, and Metroprogressbar is written primarily in code.
10, progressring and the above similar
11, Revealimage to imagesource add some mouse to move to the above animation effect.
12, Title inherits from Button, a few more dependency properties (Title,count,keepdragging,titlefactor)
13, Toggleswitch inherit from ToggleButton,
14, Toggleswitchbutton and Toggleswitch similar to the main realization of this switch effect.
15, Transitioningcontentcontrol control content dynamic appearance and disappear.
16, Windowcommands realizes the form minimizes, restores, maximizes, closes the function. Is the border above the window form. This document also writes to an event command that cannot automatically bind Caliburn.macro. Must writecal:Message.Attach来绑定。x:Name自动绑定的写法失效了。
Metro主题
Thememanager This class, to change the theme style. The source contains white and black two sets of background themes (Baselight.xaml and Basedark.xaml)
Change the theme color by Thememanager.changetheme.
A Metro-style open source project Mahapps.metro