https://hebiangu.github.io/WPF-ControlBase-Docs/
推荐学习官方文档 推荐查看在线源码https://referencesource.microsoft.com/?wt.mc_id=MVP_380318
预览 案例Release 下载地址 https://github.com/HeBianGu/WPF-ControlBase/releases
Above Blur Chart Computer Counter Cross Currency Disk Download Image Main Manager Map Media Menu Movie Music Mvp Office Phone.png Report Repository ResourceKey Scene Screen Test Tool Touch Track 基础控件 Button TextBox CheckBox RadioButton ToggleButton ComboBox DatePicker Slider ProgressBar Expander ListBox DataGrid TreeView TabControl ContextMenu Menu Label TextBlock ToolTip 自定义控件 PropertyGrid Chart2D Diagram Drawer Explorer ExplorerTree FilterBox FilterColumn SearchBox SelectionBox GridSplitter Guide ImagePlayer AnimationBox AnimatedTabControl LeftMenu Message MessageContainer MessageListBox MultiComboBox PagedDataGrid Panel PasswordBox Ping ScrollInto ScrollVewerLocator SearchComboBox Shape Shuttle StoryBoard TextEditor ThemeSet ToggleExpander TopContainer TransformAdorner TreeListView 自定义窗口 Blur Float Link Login Main Menu MessageDialog Notify Ribbon Start 系统功能 About Feedback Notification Start Survey WinTool About Identity Setting Upgrade Project Operation License Module Mvc AppConfig 特性 Design Encryption Excel Logger Print Repository XmlSerialize Mvp Validation ViewModel Animation MarkupExtension Command Converter Interactivity TypeConverter 使用https://github.com/HeBianGu/WPF-ControlBase/wiki
示例 这是一个最简单的使用方式示例HeBianGu.Demo.Demo1
这是一个基础控件中的ResourceKey示例HeBianGu.Demo.Demo2
<Button Style="{DynamicResource {x:Static h:ButtonKeys.Accent}}" />这是一个公用基础的ResourceKey示例
HeBianGu.Demo.Demo3
<Button Background="{DynamicResource {x:Static h:BrushKeys.BackgroundDefault}}"/>这是一个最简单的MainWindow窗口示例
HeBianGu.Demo.Demo4
// Do :继承ApplicationBase public partial class App : ApplicationBase { } // Do :继承h:MainWindow <h:MainWindow x:Class="HeBianGu.Demo.Demo4.MainWindow"这是一个注册主题设置和注册保存配置信息的示例
HeBianGu.Demo.Demo5
// Do :注册窗口配置,注册后窗口右侧有可设置主题的按钮 services.AddTheme(); // Do :注册序列化保存接口,注册后主题的配置会保存到本地,再次启动会读取 services.AddXmlSerialize(); // Do:设置默认主题 app.UseLocalTheme(l => { l.AccentColor = (Color)ColorConverter.ConvertFromString("#FF0093FF"); l.SmallFontSize = 14D; l.LargeFontSize = 16D; l.FontSize = FontSize.Small; l.ItemHeight = 36; l.RowHeight = 40; l.ItemCornerRadius = 5; l.AnimalSpeed = 5000; l.AccentColorSelectType = 0; l.IsUseAnimal = false; l.ThemeType = ThemeType.Light; l.Language = Language.Chinese; l.AccentBrushType = AccentBrushType.LinearGradientBrush; });这是一个注册框架对话框的示例
HeBianGu.Demo.Demo6
// Do :注册后可以使用框架自带的对话框 services.AddMessageDialog();这是一个注册框架配置页面的示例
HeBianGu.Demo.Demo7
// Do :注册配置加载方式 services.AddSetting(); // Do :注册右上角配置页面 services.AddSettingViewPrenter(); // Do :添加自定义配置信息 app.UseSetting(l => { l.Settings.Add(TestSetting.Instance); });这是一个注册启动页面的示例
HeBianGu.Demo.Demo8
// Do :注册启动页面 services.AddStart(); // Do :添加启动窗口配置 app.UseStart(l => { l.Title = "HeBianGu"; l.TitleFontSize = 80; });这是一个注册登录页面的示例
HeBianGu.Demo.Demo9
// Do :注册登录页面和使用测试接口 services.AddIdentity(); // Do :添加身份认证配置 app.UseIdentity(l => { });这是一个注册自动更新页面的示例
HeBianGu.Demo.Demo10
// Do :注册软件更新页面 services.AddUpgrade(); // Do :添加软件更新配置 app.UseUpgrade(l => { });
其他示例待更新...
注目前大部分功能采用注入(Add)和配置(Use)的方式添加
Add系统提供默认方法,如:services.AddMessageDialog(),如果不想使用系统默认对话框则替换成注册方法,重新注册接口即可,如:service.AddSingleton<IMessageDialog, YouMessageDialog>(),其中YouMessageDialog是你要自己实现的对话框,其他功能思想类似;
Use配置使用如:UseStart(l=>l.Title="HeBianGu")自定义要显示的内容,通过此方式配置的信息都有保存在主窗口右上角的设置按钮的页面中,可以自定义配置和序列化保存在本地;
模板VS=>项目=>导出模板
MainHeBianGu.Template.Main
LinkHeBianGu.Template.Link
NuGet包 名称 NuGet HeBianGu.Base.WpfBase HeBianGu.General.WpfControlLib HeBianGu.Service.Animation HeBianGu.Service.AppConfig HeBianGu.Service.Command HeBianGu.Service.Converter HeBianGu.Service.Image HeBianGu.Service.License HeBianGu.Service.MarkupExtension HeBianGu.Service.Mvc HeBianGu.Service.Mvp HeBianGu.Service.TypeConverter HeBianGu.Service.Validation HeBianGu.Common.Expression HeBianGu.Control.Adorner HeBianGu.Control.Chart2D HeBianGu.Control.Diagram HeBianGu.Control.Drawer HeBianGu.Control.Dock HeBianGu.Control.DiagraphBox HeBianGu.Control.Explorer HeBianGu.Control.Filter HeBianGu.Control.GridSplitter HeBianGu.Control.ImagePlayer HeBianGu.Control.LeftMenu HeBianGu.Control.LayerBox HeBianGu.Control.Message HeBianGu.Control.MessageContainer HeBianGu.Control.MessageListBox HeBianGu.Control.MultiComboBox HeBianGu.Control.OutlookBar HeBianGu.Control.PagedDataGrid HeBianGu.Control.Panel HeBianGu.Control.PasswordBox HeBianGu.Control.Ping HeBianGu.Control.PrintBox HeBianGu.Control.PropertyGrid HeBianGu.Control.ScrollInto HeBianGu.Control.Screen HeBianGu.Control.ScrollVewerLocator HeBianGu.Control.Shape HeBianGu.Control.Shuttle HeBianGu.Control.Step HeBianGu.Control.StoryBoard HeBianGu.Control.ThemeSet HeBianGu.Control.TextEditor HeBianGu.Control.ToggleExpander HeBianGu.Control.TopContainer HeBianGu.Control.TreeListView HeBianGu.Control.Vlc HeBianGu.Window.Blur HeBianGu.Window.Float HeBianGu.Window.Link HeBianGu.Window.Menu HeBianGu.Window.Message HeBianGu.Window.Main HeBianGu.Window.MessageDialog HeBianGu.Window.Notify HeBianGu.Systems.Start HeBianGu.Systems.Component HeBianGu.Systems.Identity HeBianGu.Systems.Project HeBianGu.Systems.Repository HeBianGu.Systems.Setting HeBianGu.Systems.Upgrade HeBianGu.Systems.XmlSerialize HeBianGu.Systems.About HeBianGu.Systems.Design HeBianGu.Systems.Encryption HeBianGu.Systems.Excel HeBianGu.Systems.Feedback HeBianGu.Systems.License HeBianGu.Systems.Logger HeBianGu.Systems.Notification HeBianGu.Systems.Operation HeBianGu.Systems.Print HeBianGu.Systems.Survey HeBianGu.Systems.WinTool 作者 赞助支持 支付宝 微信 博客https://blog.csdn.net/u010975589?type=blog
https://space.bilibili.com/370266611
参考项目https://github.com/HeBianGu/WPF-Control
QQ:908293466
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4