78 lines
3.0 KiB
Markdown
78 lines
3.0 KiB
Markdown

|
|
|
|
  [](https://www.nuget.org/packages/HandyControl)
|
|
|
|
# 欢迎使用 HandyControl
|
|
|
|
> HandyControl包含了我在开发过程中觉得wpf原生库中所欠缺的东西,现在所有的控件均已编码完毕,我会抽空将最为常用的部分一一开源,因个人能力和时间精力的原因,控件库中难免会留有bug,如果你发现了它们请给我提issue,谢谢。
|
|
|
|
让我们开门见山,HandyControl已经开源的控件截图有:
|
|
|
|
### 1、颜色拾取器ColorPicker
|
|
|
|

|
|
|
|
### 2、加载条Loading
|
|
|
|

|
|
|
|
### 3、轮播Carousel
|
|
|
|

|
|
|
|
### 4、页码条Pagination
|
|
|
|

|
|
|
|
### 5、展开折叠框Expander
|
|
|
|

|
|
|
|
### 6、时间条TimeBar
|
|
|
|

|
|
|
|
### 7、图片浏览器ImageBrowser
|
|
|
|

|
|
|
|
### 8、对比滑块CompareSlider
|
|

|
|
|
|

|
|
|
|
# 使用方法
|
|
|
|
第一步:添加HandyControl的引用;
|
|
第二步:在App.xaml中按照以下方式添加代码:
|
|
```XML
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/ThemesDefault.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
```
|
|
第三步:enjoy coding
|
|
|
|
# 其他主要功能
|
|
1、如何让**Scrollviewer**具有惯性?只要:
|
|
```XML
|
|
<controls:ScrollViewer IsEnableInertia="True">
|
|
<!--你的控件-->
|
|
</controls:ScrollViewer>
|
|
```
|
|
|
|
2、如何让**Scrollviewer**具有穿透效果?只要:
|
|
```XML
|
|
<controls:ScrollViewer IsPenetrating="True">
|
|
<!--你的控件-->
|
|
</controls:ScrollViewer>
|
|
```
|
|
|
|
# 下一版本计划
|
|
|
|
1、添加信息通知控件;
|
|
2、添加进度条样式;
|
|
3、添加路径动画控件; |