diff --git a/.gitignore b/.gitignore index ad4d0fec..d51beecc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,5 @@ -DockBoxResearch/bin -DockBoxResearch/obj -src/.vs -src/Core_30/HandyControl_Core_30/bin -src/Core_30/HandyControl_Core_30/obj -src/Core_30/HandyControlDemo_Core_30/bin -src/Core_30/HandyControlDemo_Core_30/obj -src/Net_35/HandyControl_Net_35/bin -src/Net_35/HandyControl_Net_35/obj -src/Net_35/HandyControlDemo_Net_35/bin -src/Net_35/HandyControlDemo_Net_35/obj -src/Net_40/HandyControl_Net_40/bin -src/Net_40/HandyControl_Net_40/obj -src/Net_40/HandyControlDemo_Net_40/bin -src/Net_40/HandyControlDemo_Net_40/obj -src/Net_GE45/HandyControl_Net_GE45/bin -src/Net_GE45/HandyControl_Net_GE45/obj -src/Net_GE45/HandyControlDemo_Net_GE45/bin -src/Net_GE45/HandyControlDemo_Net_GE45/obj -*.user \ No newline at end of file +.vs +*.user +*.xml +[Bb]in/ +[Oo]bj/ \ No newline at end of file diff --git a/Installers/VS2019/HandyControl_VS2019.sln b/Installers/VS2019/HandyControl_VS2019.sln new file mode 100644 index 00000000..6e2908e9 --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28803.352 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandyControl_VS2019", "HandyControl_VS2019\HandyControl_VS2019.csproj", "{3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A7F567D2-5FA3-4E17-A8A8-CDAFC217BFF5} + EndGlobalSection +EndGlobal diff --git a/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019.csproj b/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019.csproj new file mode 100644 index 00000000..621606c8 --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019.csproj @@ -0,0 +1,95 @@ + + + + 16.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + Debug + AnyCPU + 2.0 + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA} + Library + Properties + HandyControl_VS2019 + HandyControl_VS2019 + v4.7.2 + true + true + true + false + false + true + true + Program + $(DevEnvDir)devenv.exe + /rootsuffix Exp + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + Always + true + + + Always + true + + + Designer + + + + + + + + + + + + true + Always + + + true + Always + + + true + Always + + + + + + + \ No newline at end of file diff --git a/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019Package.cs b/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019Package.cs new file mode 100644 index 00000000..10e0ebb6 --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019/HandyControl_VS2019Package.cs @@ -0,0 +1,53 @@ +using System; +using System.Runtime.InteropServices; +using System.Threading; +using Microsoft.VisualStudio.Shell; +using Task = System.Threading.Tasks.Task; + +namespace HandyControl_VS2019 +{ + /// + /// This is the class that implements the package exposed by this assembly. + /// + /// + /// + /// The minimum requirement for a class to be considered a valid package for Visual Studio + /// is to implement the IVsPackage interface and register itself with the shell. + /// This package uses the helper classes defined inside the Managed Package Framework (MPF) + /// to do it: it derives from the Package class that provides the implementation of the + /// IVsPackage interface and uses the registration attributes defined in the framework to + /// register itself and its components with the shell. These attributes tell the pkgdef creation + /// utility what data to put into .pkgdef file. + /// + /// + /// To get loaded into VS, the package must be referred by <Asset Type="Microsoft.VisualStudio.VsPackage" ...> in .vsixmanifest file. + /// + /// + [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] + [Guid(PackageGuidString)] + public sealed class HandyControl_VS2019Package : AsyncPackage + { + /// + /// HandyControl_VS2019Package GUID string. + /// + public const string PackageGuidString = "157ef242-83b5-47d0-8f2f-e21dc8308151"; + + #region Package Members + + /// + /// Initialization of the package; this method is called right after the package is sited, so this is the place + /// where you can put all the initialization code that rely on services provided by VisualStudio. + /// + /// A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down. + /// A provider for progress updates. + /// A task representing the async work of package initialization, or an already completed task if there is none. Do not return null from this method. + protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) + { + // When initialized asynchronously, the current thread may be a background thread at this point. + // Do any initialization that requires the UI thread after switching to the UI thread. + await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); + } + + #endregion + } +} diff --git a/Installers/VS2019/HandyControl_VS2019/License.txt b/Installers/VS2019/HandyControl_VS2019/License.txt new file mode 100644 index 00000000..cfef606b --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019/License.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018-2019 HandyOrg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Installers/VS2019/HandyControl_VS2019/Packages/handycontrol.1.5.5.nupkg b/Installers/VS2019/HandyControl_VS2019/Packages/handycontrol.1.5.5.nupkg new file mode 100644 index 00000000..9f36d145 Binary files /dev/null and b/Installers/VS2019/HandyControl_VS2019/Packages/handycontrol.1.5.5.nupkg differ diff --git a/Installers/VS2019/HandyControl_VS2019/ProjectTemplates/WpfApp.zip b/Installers/VS2019/HandyControl_VS2019/ProjectTemplates/WpfApp.zip new file mode 100644 index 00000000..ee36df8a Binary files /dev/null and b/Installers/VS2019/HandyControl_VS2019/ProjectTemplates/WpfApp.zip differ diff --git a/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs b/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..d4aae7d0 --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs @@ -0,0 +1,14 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("HandyControl_VS2019")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HandyControl_VS2019")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: ComVisible(false)] +[assembly: AssemblyVersion("1.5.5")] +[assembly: AssemblyFileVersion("1.5.5")] \ No newline at end of file diff --git a/Installers/VS2019/HandyControl_VS2019/icon_100_100.png b/Installers/VS2019/HandyControl_VS2019/icon_100_100.png new file mode 100644 index 00000000..df0bb782 Binary files /dev/null and b/Installers/VS2019/HandyControl_VS2019/icon_100_100.png differ diff --git a/Installers/VS2019/HandyControl_VS2019/icon_300_300.png b/Installers/VS2019/HandyControl_VS2019/icon_300_300.png new file mode 100644 index 00000000..cb318d98 Binary files /dev/null and b/Installers/VS2019/HandyControl_VS2019/icon_300_300.png differ diff --git a/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest b/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest new file mode 100644 index 00000000..4701c027 --- /dev/null +++ b/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest @@ -0,0 +1,30 @@ + + + + + HandyControl for VS2019 + This VSIX Project will help people initialize a HandyControl project. + https://handyorg.github.io/handycontrol + License.txt + https://handyorg.github.io/handycontrol/quick_start + https://github.com/HandyOrg/HandyControl/releases + icon_100_100.png + icon_300_300.png + WPF C# Control + + + + + + + + + + + + + + + + + diff --git a/LICENSE b/LICENSE index 1ba53fed..f9f0dead 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 HandyOrg +Copyright (c) 2018-2019 HandyOrg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 18acdfdb..687eaa26 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,16 @@ Step 2:Add code in App.xaml as follows: ``` -Step 3:enjoy coding + +Step 3: Add NameSpace: +`xmlns:hc="https://handyorg.github.io/handycontrol"` + +Step 4:enjoy coding + +## VSIX packages for Visual Studio + +| [VS2019](https://marketplace.visualstudio.com/items?itemName=HandyOrg.handycontrolforvs2019) | +| ------------- | ## Overview diff --git a/doc/source/handycontrol/attach/images/Attach.png b/doc/source/handycontrol/attach/images/Attach.png new file mode 100644 index 00000000..efda668e Binary files /dev/null and b/doc/source/handycontrol/attach/images/Attach.png differ diff --git a/doc/source/handycontrol/attach/index.md b/doc/source/handycontrol/attach/index.md index ca12ad62..c8aa438a 100644 --- a/doc/source/handycontrol/attach/index.md +++ b/doc/source/handycontrol/attach/index.md @@ -1,5 +1,9 @@ --- -title: 建设中 +title: 附加属性 --- -建设中 \ No newline at end of file +附加属性源码在Controls / Attach文件夹中: + +![Attach](images/Attach.png) + +以`Element`结尾的类,可以为所有的控件设置一些共有的属性,以`Attach`结尾的类,只能为一种控件设置相关的属性。 \ No newline at end of file diff --git a/doc/source/handycontrol/basic_xaml/behaviors/index.md b/doc/source/handycontrol/basic_xaml/behaviors/index.md index d994b47f..8975830f 100644 --- a/doc/source/handycontrol/basic_xaml/behaviors/index.md +++ b/doc/source/handycontrol/basic_xaml/behaviors/index.md @@ -14,5 +14,5 @@ title: 行为 | BehaviorY400 | 流体移动行为,y轴运动,400毫秒结束动画 | {% note info no-icon %} -用例:`controls:PanelElement.FluidMoveBehavior="{StaticResource BehaviorXY200}"` +用例:`hc:PanelElement.FluidMoveBehavior="{StaticResource BehaviorXY200}"` {% endnote %} \ No newline at end of file diff --git a/doc/source/handycontrol/index.md b/doc/source/handycontrol/index.md index cf901cf9..407206a8 100644 --- a/doc/source/handycontrol/index.md +++ b/doc/source/handycontrol/index.md @@ -4,12 +4,15 @@ title: 欢迎使用HandyControl HandyControl是一套WPF控件库,它几乎重写了所有原生样式,同时包含50多款额外的控件(正逐步增加)。 -# 使用要求 +# 要求 - - .Net >= 4.0 - - OS >= win7 - - IDE >= vs2019 - - C# >= 7.3 +- 使用要求 +.Net >= 4.0 +OS >= win7 + +- 编译要求 +IDE >= vs2019 +C# >= 7.3 # 下载 diff --git a/doc/source/handycontrol/langs/images/Langs.png b/doc/source/handycontrol/langs/images/Langs.png new file mode 100644 index 00000000..cfec814b Binary files /dev/null and b/doc/source/handycontrol/langs/images/Langs.png differ diff --git a/doc/source/handycontrol/langs/index.md b/doc/source/handycontrol/langs/index.md index ca12ad62..567e3917 100644 --- a/doc/source/handycontrol/langs/index.md +++ b/doc/source/handycontrol/langs/index.md @@ -1,5 +1,30 @@ --- -title: 建设中 +title: 国际化 --- -建设中 \ No newline at end of file +# 使用方式 + +可通过`ConfigHelper.Instance.SetLang(string lang)`指定需要使用的语言包,默认使用zh-cn。 + +控件库自带的语言包一般为控件库内部使用,但用户也可以通过以下两种方式使用: + +- xaml +第一步,引入命名空间:`xmlns:hc="https://handyorg.github.io/handycontrol"` +第二步,使用语言包:`` + +- C# +`HandyControl.Properties.Langs.Lang.Cancel` + +{% note warning %} +控件库不支持动态语言包切换,未来也不会有支持。 +{% endnote %} + +# 扩展 + +控件库自带zh-cn和en两份语言包,默认为zh-cn: + +![Langs](images/Langs.png) + +如果需要可自行扩展,这里推荐使用开源插件:[ResXManager](https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager),来维护所有的语言包。 + +引用控件库后,会在运行目录生成语言包文件夹,其命名方式形如zh-cn、en等。 \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/comboBox/index.md b/doc/source/handycontrol/native_controls/comboBox/index.md index 6c05f375..588fe39d 100644 --- a/doc/source/handycontrol/native_controls/comboBox/index.md +++ b/doc/source/handycontrol/native_controls/comboBox/index.md @@ -4,16 +4,40 @@ title: ComboBox 组合框 # ComboBoxBaseStyle -原生组合框默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 +原生组合框默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。原生组合框如果未设置任何样式,则默认使用该样式: + +- 默认样式 +`` +![ComboBoxBaseStyle](../images/ComboBoxBaseStyle.png) # ComboBoxExtendBaseStyle : ComboBoxBaseStyle 原生组合框扩展默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 -# ComboBoxPlusBaseStyle : ComboBoxExtendBaseStyle - -扩展组合框默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 - # ComboBoxExtend : ComboBoxExtendBaseStyle -相对于原生组合框默认样式,它借助于附加属性可以实现标题、水印的功能。 \ No newline at end of file +相对于原生组合框默认样式,它借助于附加属性可以实现标题、水印的功能。 + +- 标题在上 +`` +![ComboBoxExtend_1](../images/ComboBoxExtend_1.png) + +- 标题在左 +`` +![ComboBoxExtend_2](../images/ComboBoxExtend_2.png) + +{% note warning %} +标题在左时,为了多个输入框左侧对齐,需要设置标题宽度,标题宽度无需逐个设置,可在外部容器上统一设置。 +{% endnote %} + +- 标题在上,带有水印 +`` +![ComboBoxExtend_3](../images/ComboBoxExtend_3.png) + +- 标题在上,带有水印,且为必填 +`` +![ComboBoxExtend_4](../images/ComboBoxExtend_4.png) + +- 标题在上,带有水印,且为必填,同时自定义必填提示符 +`` +![ComboBoxExtend_5](../images/ComboBoxExtend_5.png) \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/contentControl/index.md b/doc/source/handycontrol/native_controls/contentControl/index.md index ca12ad62..22b4365c 100644 --- a/doc/source/handycontrol/native_controls/contentControl/index.md +++ b/doc/source/handycontrol/native_controls/contentControl/index.md @@ -1,5 +1,5 @@ --- -title: 建设中 +title: ContentControl 内容控件 --- -建设中 \ No newline at end of file +所有的`ContentControl`默认无法获得焦点 \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/contextMenu/index.md b/doc/source/handycontrol/native_controls/contextMenu/index.md index ca12ad62..fdcf837e 100644 --- a/doc/source/handycontrol/native_controls/contextMenu/index.md +++ b/doc/source/handycontrol/native_controls/contextMenu/index.md @@ -1,5 +1,22 @@ --- -title: 建设中 +title: ContextMenu 上下文菜单 --- -建设中 \ No newline at end of file +# ContextMenuBaseStyle + +上下文菜单默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 + +{% note info no-icon %} +用例: + +{% code %} + + + + + + + +{% endcode %} +![ContextMenu](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/ContextMenu.png) +{% endnote %} \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/dataGrid/index.md b/doc/source/handycontrol/native_controls/dataGrid/index.md index ca12ad62..7ea36f18 100644 --- a/doc/source/handycontrol/native_controls/dataGrid/index.md +++ b/doc/source/handycontrol/native_controls/dataGrid/index.md @@ -1,5 +1,32 @@ --- -title: 建设中 +title: DataGrid 数据表格 --- -建设中 \ No newline at end of file +{% note info no-icon %} +用例: + +{% code %} + + + + + + + + + + + + + + + + + + + + + +{% endcode %} +![ContextMenu](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/DataGrid.png) +{% endnote %} \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/datePicker/index.md b/doc/source/handycontrol/native_controls/datePicker/index.md index ca12ad62..d4f5933e 100644 --- a/doc/source/handycontrol/native_controls/datePicker/index.md +++ b/doc/source/handycontrol/native_controls/datePicker/index.md @@ -1,5 +1,38 @@ --- -title: 建设中 +title: DatePicker 日期选择器 --- -建设中 \ No newline at end of file +# DatePickerBaseStyle + +原生日期选择器默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。原生日期选择器如果未设置任何样式,则默认使用该样式: + +- 默认样式 +`` +![ComboBoxBaseStyle](../images/DatePickerBaseStyle.png) + +# DatePickerExtendBaseStyle : DatePickerBaseStyle + +原生日期选择器扩展默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 + +# DatePickerExtend : DatePickerExtendBaseStyle + +- 标题在上 +`` +![DatePickerExtend_1](../images/DatePickerExtend_1.png) + +- 标题在左 +`` +![DatePickerExtend_2](../images/DatePickerExtend_2.png) + +{% note warning %} +标题在左时,为了多个输入框左侧对齐,需要设置标题宽度,标题宽度无需逐个设置,可在外部容器上统一设置。 +{% endnote %} + +- 标题在上,带有水印 +[参见Combobox](../combobox) + +- 标题在上,带有水印,且为必填 +[参见Combobox](../combobox) + +- 标题在上,带有水印,且为必填,同时自定义必填提示符 +[参见Combobox](../combobox) \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxBaseStyle.png b/doc/source/handycontrol/native_controls/images/ComboBoxBaseStyle.png new file mode 100644 index 00000000..84e4da34 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxBaseStyle.png differ diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxExtend_1.png b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_1.png new file mode 100644 index 00000000..31195a92 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_1.png differ diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxExtend_2.png b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_2.png new file mode 100644 index 00000000..a2b8060c Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_2.png differ diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxExtend_3.png b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_3.png new file mode 100644 index 00000000..56a4ef35 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_3.png differ diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxExtend_4.png b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_4.png new file mode 100644 index 00000000..9287b33d Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_4.png differ diff --git a/doc/source/handycontrol/native_controls/images/ComboBoxExtend_5.png b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_5.png new file mode 100644 index 00000000..761325f3 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/ComboBoxExtend_5.png differ diff --git a/doc/source/handycontrol/native_controls/images/DatePickerBaseStyle.png b/doc/source/handycontrol/native_controls/images/DatePickerBaseStyle.png new file mode 100644 index 00000000..ddc505b1 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/DatePickerBaseStyle.png differ diff --git a/doc/source/handycontrol/native_controls/images/DatePickerExtend_1.png b/doc/source/handycontrol/native_controls/images/DatePickerExtend_1.png new file mode 100644 index 00000000..489f613f Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/DatePickerExtend_1.png differ diff --git a/doc/source/handycontrol/native_controls/images/DatePickerExtend_2.png b/doc/source/handycontrol/native_controls/images/DatePickerExtend_2.png new file mode 100644 index 00000000..2f350a68 Binary files /dev/null and b/doc/source/handycontrol/native_controls/images/DatePickerExtend_2.png differ diff --git a/doc/source/handycontrol/quick_start/index.md b/doc/source/handycontrol/quick_start/index.md new file mode 100644 index 00000000..9ec44b4c --- /dev/null +++ b/doc/source/handycontrol/quick_start/index.md @@ -0,0 +1,25 @@ +--- +title: 快速开始 +--- + +# 第一步 +下载源码或者以Nuget的方式引用控件库。 +源码链接:[HandyControl-Github](https://github.com/HandyOrg/HandyControl) +Nuget链接:[HandyControl-Nuget](https://www.nuget.org/packages/HandyControl/) + +# 第二步 +在App.xaml中添加以下代码: + +``` xml + + + + + + + + +``` + +# 第三步 +添加命名空间:`xmlns:hc="https://handyorg.github.io/handycontrol"` \ No newline at end of file diff --git a/doc/themes/next/_config.yml b/doc/themes/next/_config.yml index 23fc04f2..92a82f52 100644 --- a/doc/themes/next/_config.yml +++ b/doc/themes/next/_config.yml @@ -161,6 +161,7 @@ menu: HandyControl: default: /handycontrol/ || 鸣谢: /tnx/ || + 快速开始: /quick_start/ || # 总览: /overview/ || # 规范: /specifications/ || 基础xaml定义: diff --git a/src/Core_30/HandyControlDemo_Core_30/HandyControlDemo_Core30.csproj b/src/Core_30/HandyControlDemo_Core_30/HandyControlDemo_Core30.csproj index b0f2f73d..b87ba43d 100644 --- a/src/Core_30/HandyControlDemo_Core_30/HandyControlDemo_Core30.csproj +++ b/src/Core_30/HandyControlDemo_Core_30/HandyControlDemo_Core30.csproj @@ -350,9 +350,6 @@ Resources\Img\LeftMainContent\brackets_Square_16xLG.png - - Resources\Img\LeftMainContent\PaneLayout_16x.png - diff --git a/src/Core_30/HandyControl_Core_30/Themes/Styles/Window.xaml b/src/Core_30/HandyControl_Core_30/Themes/Styles/Window.xaml index 042c245e..7e5ec4c3 100644 --- a/src/Core_30/HandyControl_Core_30/Themes/Styles/Window.xaml +++ b/src/Core_30/HandyControl_Core_30/Themes/Styles/Window.xaml @@ -84,7 +84,7 @@ - +