A Metro-style open source project Mahapps.metro

Source: Internet
Author: User

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
    • Mahchats
    • Markpad
    • Carnac
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.