A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/HeBianGu/WPF-ControlBase below:

GitHub - HeBianGu/WPF-ControlBase: Wpf封装的自定义控件资源库

WPF-Controls | English

关于 Star

开发文档

https://hebiangu.github.io/WPF-ControlBase-Docs/

推荐学习官方文档

https://learn.microsoft.com/zh-cn/dotnet/api/system.windows.controls?view=windowsdesktop-8.0?wt.mc_id=MVP_380318

推荐查看在线源码

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=>项目=>导出模板

Main

HeBianGu.Template.Main

Link

HeBianGu.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