# MahApps.Metro
A toolkit for creating metro-style WPF applications. Lots of goodness out-of-the box.
[![Gitter](https://img.shields.io/badge/Gitter-Join%20Chat-green.svg?style=flat-square)](https://gitter.im/MahApps/MahApps.Metro)
[![Build status](https://img.shields.io/appveyor/ci/flagbug/mahapps-metro/master.svg?style=flat-square)](https://ci.appveyor.com/project/flagbug/mahapps-metro/branch/master)
[![Release](https://img.shields.io/github/release/MahApps/MahApps.Metro.svg?style=flat-square)](https://github.com/MahApps/MahApps.Metro/releases/latest)
[![Downloads](https://img.shields.io/nuget/dt/MahApps.Metro.svg?style=flat-square)](http://www.nuget.org/packages/MahApps.Metro/)
[![Issues](https://img.shields.io/github/issues/MahApps/MahApps.Metro.svg?style=flat-square)](https://github.com/MahApps/MahApps.Metro/issues)
![main demo window](https://raw.githubusercontent.com/MahApps/MahApps.Metro/master/docs/main_demo_window.png)
![main demo window animated](https://raw.githubusercontent.com/MahApps/MahApps.Metro/master/docs/main_demo_window.gif)
## Documentation
Read it here: [http://mahapps.com](http://mahapps.com)
You can help keep the documentation up to date by submitting a pull request on the [mahapps.github.com](https://github.com/MahApps/mahapps.github.com) repository. If you're unfamiliar with GitHub Pages, the help guides [here](https://help.github.com/pages/) are a good place to start.
## Release Notes
- upcoming [v1.2.0](./docs/release-notes/1.2.0.md)
- current [v1.1.2](./docs/release-notes/1.1.2.md)
- all [other](./docs/release-notes/)
## Icons
MahApps.Metro has also an icon package used from [WindowsIcons](https://github.com/Templarian/WindowsIcons) by [Templarian](https://github.com/Templarian)
You can download the Nuget package [here](https://www.nuget.org/packages/MahApps.Metro.Resources)
## Styles
`CheckBox` and `RadioButton` styles adapted from styles created by [Brian Lagunas of Infragistics](http://brianlagunas.com/free-metro-light-and-dark-themes-for-wpf-and-silverlight-microsoft-controls/).
## Contributing to this project
Did you stumble upon a bug? Before reporting it to us, please check out the [FAQ](https://github.com/MahApps/MahApps.Metro/wiki/FAQ) to see if it is actually a bug. If you can not find anything related to your issue, feel free to report it to us in the issue tracker.
If you've improved MahApps.Metro and think that other people would enjoy it, submit a pull request. Anyone and everyone is welcome to contribute. Please take a moment to review the [guidelines for contributing](CONTRIBUTING.md).
* [Bug reports](CONTRIBUTING.md#bugs)
* [Feature requests](CONTRIBUTING.md#features)
* [Pull requests](CONTRIBUTING.md#pull-requests)
## Missing a control?
If you're looking for a control that we don't have, we have some friends who have made MA.M compatible controls. Check them out:
- [Loading indicators](https://github.com/100GPing100/LoadingIndicators.WPF) by [@100GPing100](https://github.com/100GPing100)
- [MahApps.Metro.SimpleChildWindow](https://github.com/punker76/MahApps.Metro.SimpleChildWindow) A simple child window for MahApps.Metro
- [Dragablz](https://github.com/ButchersBoy/Dragablz) Tearable tab control for WPF, which includes docking, tool windows and MDI. [http://dragablz.net](http://dragablz.net)
- [MaterialDesignInXamlToolkit](https://github.com/ButchersBoy/MaterialDesignInXamlToolkit) Google Material Design in XAML & WPF, for C# & VB.Net [http://materialdesigninxaml.net](http://materialdesigninxaml.net)
## A short How To
Or, how to create a simple `MahApps.Metro` Application and a Window...
```XML
<Application x:Class="WpfApplication.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
```
```XML
<controls:MetroWindow x:Class="WpfApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
Title="MainWindow"
Height="600"
Width="800">
<Grid>
<!-- now your content -->
</Grid>
</controls:MetroWindow>
```
```csharp
namespace WpfApplication
{
public partial class MainWindow : MetroWindow
{
public MainWindow()
{
InitializeComponent();
}
}
}
```
## Visual Studio Templates
MahApps.Metro have 4 simple templates to start with the awesome MahApps.Metro library.
* WPF MahApps.Metro Application (.NET4)
* WPF MahApps.Metro Application (.NET45)
* Visual Basic WPF MahApps.Metro Application (.NET45)
* Window MahApps.Metro (WPF)
Download this [Templates.zip](https://github.com/MahApps/MahApps.Metro/raw/master/Visual%20Studio%20Templates/Templates.zip) (templates are created with VS 2013) and extract it to your user template folder:
```
c:\Users\<USER>\Documents\Visual Studio 2013\
```
Now you can choose the templates at the `New Project` dialog.
![](./docs/new_project_dialog.png)
## Breaking Changes
* For version [0.11.3.1](https://github.com/MahApps/MahApps.Metro/wiki/Breaking-Changes-or-WTF-is-happening-with-the-ALPHA-version)
* For version [0.14 to 1.0.0](https://github.com/MahApps/MahApps.Metro/blob/master/docs/v1.0-Migration-Guide.md)
## Licence
Microsoft Public License (Ms-PL)
This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the softwar
没有合适的资源?快使用搜索试试~ 我知道了~
MahApps.Metro源码+实例
共1079个文件
cs:333个
baml:237个
xaml:154个
5星 · 超过95%的资源 需积分: 47 374 下载量 131 浏览量
2016-01-15
13:29:27
上传
评论 9
收藏 14.42MB RAR 举报
温馨提示
WPF的metro风格的控件库。提供源码,供大家学习。
资源推荐
资源详情
资源评论
收起资源包目录
MahApps.Metro源码+实例 (1079个子文件)
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
avaloncontrolslibrary 3KB
Icons.baml 1.06MB
Controls.PasswordBox.baml 27KB
Controls.Buttons.baml 26KB
Controls.DataGrid.baml 22KB
Controls.ComboBox.baml 20KB
Controls.TextBox.baml 19KB
Controls.PasswordBox.baml 19KB
Controls.ContextMenu.baml 18KB
Controls.Buttons.baml 17KB
Controls.Scrollbars.baml 16KB
MetroWindow.baml 15KB
Controls.DataGrid.baml 15KB
Controls.Calendar.baml 14KB
Controls.ComboBox.baml 13KB
Controls.Expander.baml 13KB
Controls.TextBox.baml 13KB
VSDemo.baml 13KB
FlyoutDemo.baml 13KB
Controls.ContextMenu.baml 11KB
Controls.ListView.baml 11KB
MetroWindow.baml 11KB
Controls.Slider.baml 11KB
MetroProgressBar.baml 11KB
ProgressRing.baml 10KB
MainWindow.baml 10KB
Controls.Scrollbars.baml 10KB
TextExamples.baml 10KB
TabControlExamples.baml 10KB
ButtonsExample.baml 10KB
Controls.AnimatedSingleRowTabControl.baml 10KB
TransitioningContentControl.baml 10KB
Controls.DatePicker.baml 9KB
DropDownButton.baml 9KB
Colors.baml 9KB
Controls.Expander.baml 9KB
Controls.Calendar.baml 9KB
Flyout.baml 9KB
Controls.TabControl.baml 8KB
DataGridExamples.baml 8KB
SplitButton.baml 8KB
ToggleSwitch.baml 8KB
Controls.ListView.baml 8KB
NumericUpDown.baml 8KB
SliderProgressExamples.baml 8KB
Menu.baml 7KB
Colors.baml 7KB
Controls.DatePicker.baml 7KB
Controls.TreeView.baml 7KB
WindowCommands.baml 7KB
MetroProgressBar.baml 7KB
Controls.Toolbar.baml 7KB
ProgressRing.baml 7KB
Controls.Slider.baml 7KB
TransitioningContentControl.baml 7KB
Controls.AnimatedSingleRowTabControl.baml 6KB
Controls.baml 6KB
OtherExamples.baml 6KB
Flyout.baml 6KB
DropDownButton.baml 6KB
FlatSlider.baml 6KB
SelectionExamples.baml 6KB
FlipView.baml 6KB
NumericUpDown.baml 6KB
Controls.TabControl.baml 5KB
CleanWindowDemo.baml 5KB
SplitButton.baml 5KB
MetroTabItem.baml 5KB
Controls.CheckBox.baml 5KB
TabControl.baml 5KB
ToggleSwitch.baml 5KB
RangeSlider.baml 5KB
Controls.baml 5KB
Glow.baml 5KB
ScrollBar.baml 5KB
Colors.baml 5KB
WindowButtonCommands.baml 5KB
WindowCommands.baml 5KB
MetroAnimatedSingleRowTabControl.baml 5KB
BaseLight.baml 5KB
BaseDark.baml 5KB
Menu.baml 5KB
Controls.Toolbar.baml 5KB
Controls.TreeView.baml 5KB
Controls.ProgressBar.baml 5KB
共 1079 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
飞阁
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页