HandyControl/README.md

239 lines
7.8 KiB
Markdown
Raw Normal View History

2018-08-24 15:00:26 +08:00
![logo](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/icon.png)
2019-01-19 21:00:02 +08:00
![dotnet-version](https://img.shields.io/badge/.net-%3E%3D4.0-blue.svg) ![csharp-version](https://img.shields.io/badge/C%23-7.0-blue.svg) ![IDE-version](https://img.shields.io/badge/IDE-vs2017-blue.svg) [![nuget-version](https://img.shields.io/nuget/v/HandyControl.svg)](https://www.nuget.org/packages/HandyControl) [![build-status](https://ci.appveyor.com/api/projects/status/github/handyorg/handycontrol?svg=true)](https://ci.appveyor.com/project/NaBian/handycontrol) [![Join the chat at https://gitter.im/HandyControl/Lobby](https://badges.gitter.im/HandyControl/Lobby.svg)](https://gitter.im/HandyControl/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![qq-group](https://img.shields.io/badge/qq-714704041-red.svg)](//shang.qq.com/wpa/qunwpa?idkey=a571e5553c9d41e49c4f22f3a8b2865451497a795ff281fedf3285def247efc1)
2018-12-15 23:37:26 +08:00
2019-01-17 15:31:06 +08:00
# Discussion
![qq-group](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/qq-group.png)
2018-10-09 00:41:11 +08:00
# Welcome to HandyControl
2018-08-24 15:00:26 +08:00
2018-10-09 00:41:11 +08:00
## Latest examples
2018-08-24 15:00:26 +08:00
2019-01-22 20:02:40 +08:00
### ProgressButton
![ProgressButton](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ProgressButton.png)
2019-01-06 16:55:04 +08:00
### CoverFlow
![CoverFlow](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CoverFlow.gif)
2019-01-02 18:48:30 +08:00
### CoverView
![CoverView](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CoverView.gif)
2018-12-28 00:14:09 +08:00
### WaterfallPanel
![WaterfallPanel](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/WaterfallPanel.png)
2019-01-22 20:02:40 +08:00
## History publication
2018-12-27 00:01:03 +08:00
### Rate
![Rate](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Rate.png)
2018-12-25 18:24:01 +08:00
### BlurWindow
![BlurWindow](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/BlurWindow.png)
2018-12-22 16:19:26 +08:00
### FlipClock
![FlipClock](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/FlipClock.gif)
2018-12-27 14:40:29 +08:00
### Shield
![Shield](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Shield.png)
2018-11-25 22:41:35 +08:00
### OutlineText
![OutlineText](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/OutlineText.png)
2018-11-22 19:07:31 +08:00
### Tag
![Tag](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Tag.png)
### ToolBar
2018-11-21 18:58:20 +08:00
![ToolBar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ToolBar.png)
2018-11-22 19:07:31 +08:00
### Slider
2018-11-11 15:07:55 +08:00
![Slider](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Slider.png)
2018-11-22 19:07:31 +08:00
### CircleProgressBar
2018-11-01 18:04:33 +08:00
![CircleProgressBar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CircleProgressBar.png)
### ButtonStyle
![ButtonStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Button.png)
### ToggleButtonStyle
![ToggleButtonStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ToggleButton.png)
### RadioButtonStyle
![RadioButtonStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/RadioButton.png)
### CheckBoxStyle
![CheckBoxStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CheckBox.png)
### ListBoxStyle
![ListBoxStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ListBox.png)
### TreeViewStyle
![TreeViewStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TreeView.png)
### ListViewStyle
![ListViewStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ListView.png)
2018-11-22 19:07:31 +08:00
### DataGrid
![DataGrid](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/DataGrid.png)
2018-08-24 15:00:26 +08:00
2018-11-22 19:07:31 +08:00
### Now you can switch to dark theme
2018-10-28 16:44:10 +08:00
![dark theme](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/DarkTheme.png)
2018-11-22 19:07:31 +08:00
### ColorPicker
2018-08-24 15:30:21 +08:00
2018-10-09 00:41:11 +08:00
![ColorPicker](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ColorPicker.gif)
2018-08-24 15:30:21 +08:00
2018-11-22 19:07:31 +08:00
### Loading
2018-08-27 11:53:14 +08:00
2018-10-09 00:41:11 +08:00
![Loading](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Loading.gif)
2018-08-27 11:53:14 +08:00
2018-11-22 19:07:31 +08:00
### Carousel
2018-08-27 11:53:14 +08:00
2018-10-09 00:41:11 +08:00
![Carousel](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Carousel.gif)
2018-09-04 15:42:37 +08:00
2018-11-22 19:07:31 +08:00
### Pagination
2018-08-31 19:33:17 +08:00
2018-10-09 00:41:11 +08:00
![Pagination](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Pagination.gif)
2018-08-31 19:33:17 +08:00
2018-11-22 19:07:31 +08:00
### Expander
2018-09-04 15:42:37 +08:00
2018-10-09 00:41:11 +08:00
![Expander](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Expander.gif)
2018-09-04 15:42:37 +08:00
2018-11-22 19:07:31 +08:00
### TimeBar
2018-09-04 15:42:37 +08:00
2018-10-09 00:41:11 +08:00
![TimeBar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TimeBar.gif)
2018-09-04 15:42:37 +08:00
2018-11-22 19:07:31 +08:00
### ImageBrowser
2018-09-04 15:42:37 +08:00
2018-10-09 00:41:11 +08:00
![ImageBrowser](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ImageBrowser.gif)
2018-09-04 15:42:37 +08:00
2018-11-22 19:07:31 +08:00
### CompareSlider
2018-09-11 12:00:52 +08:00
2018-10-09 00:41:11 +08:00
![CompareSlider](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CompareSlider-h.gif)
2018-09-11 12:00:52 +08:00
2018-10-09 00:41:11 +08:00
![CompareSlider](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CompareSlider-v.gif)
2018-09-18 19:22:11 +08:00
2018-11-22 19:07:31 +08:00
### Growl
2018-09-18 19:22:11 +08:00
2018-10-09 00:41:11 +08:00
![Growl](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Growl.gif)
2018-08-27 11:53:14 +08:00
2018-11-22 19:07:31 +08:00
### AnimationPath
2018-10-09 00:41:11 +08:00
![AnimationPath](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/AnimationPath.gif)
2018-11-22 19:07:31 +08:00
### ProgressBar
2018-10-09 00:41:11 +08:00
![ProgressBar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ProgressBar.gif)
2018-11-22 19:07:31 +08:00
### TabControl
2018-10-09 00:41:11 +08:00
![TabControl](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TabControl.gif)
### TabControlStyle
![TabControlStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TabControl.png)
2018-12-13 13:51:42 +08:00
### GroupBox
![GroupBox](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/GroupBox.png)
2018-11-22 19:07:31 +08:00
### StepBar
2018-10-09 00:41:11 +08:00
2018-11-11 15:07:55 +08:00
![StepBar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/StepBar.png)
2018-10-09 00:41:11 +08:00
### GifImage
![GifImage](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/GifImage.gif)
### ContextMenu
![ContextMenu](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ContextMenu.png)
2018-11-22 19:07:31 +08:00
### Calendar
2018-10-09 00:41:11 +08:00
![Calendar](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Calendar.jpg)
2018-11-22 19:07:31 +08:00
### Clock
2018-10-09 00:41:11 +08:00
![Clock](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Clock.jpg)
### CalendarWithClock
![CalendarWithClock](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CalendarWithClock.png)
2018-11-22 19:07:31 +08:00
### TextBlock
2018-10-10 16:38:52 +08:00
![TextBlock](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TextBlock.jpg)
### RichTextBoxStyle
![RichTextBoxStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/RichTextBox.png)
2018-11-22 19:07:31 +08:00
### TextBox
2018-10-10 16:38:52 +08:00
![TextBox](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TextBox.jpg)
2018-11-22 19:07:31 +08:00
### ComboBox
2018-10-10 16:38:52 +08:00
![ComboBox](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ComboBox.jpg)
2018-11-22 19:07:31 +08:00
### PasswordBox
2018-10-10 16:38:52 +08:00
![PasswordBox](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/PasswordBox.jpg)
2018-11-22 19:07:31 +08:00
### DataPicker
2018-10-10 16:38:52 +08:00
![DataPicker](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/DataPicker.jpg)
2018-11-22 19:07:31 +08:00
### TimePicker
2018-10-10 16:38:52 +08:00
![TimePicker](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/TimePicker.jpg)
2018-11-22 19:07:31 +08:00
### CirclePanel
2018-10-10 16:38:52 +08:00
![CirclePanel](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/CirclePanel.jpg)
### BorderStyle
![BorderStyle](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/Border.png)
2018-10-09 00:41:11 +08:00
# Usage
Step 1Add a reference to HandyControl or search for HandyControl on the nuget;
Step 2Add code in App.xaml as follows:
2018-08-27 11:53:14 +08:00
```XML
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
2018-10-28 16:44:10 +08:00
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
2018-08-27 11:53:14 +08:00
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
```
2018-12-01 00:33:39 +08:00
Step 3enjoy coding
# Switching configuration
2019-01-19 18:22:34 +08:00
![Switching configuration](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/SwitchConfig.png)