WPF-细说控件Control

Content Controls 内容控件
基本概念

1.内容控件的最大的特征就是有一个Content属性

继承关系

2.1 ButtonBase
FrameworkElement->Control->ContentControl->ButtonBase->Button,RepeatButton,GridViewColumnHeader,ToggleButton->CheckBox,RadioButton
2.2 HeaderedContentControl(带有标题的内容控件)
FrameworkElement->Control->ContentControl->HeaderedContentControl->Expander,GroupBox,TabItem
2.3 ToolTip(提示)
ToolTip也是继承自ContentControl
2.4 ScrollViewer(滚动条)

ItemsControl 条目控件
基本概念

1.WPF用于显示一组数据的控件,包含Items和ItemsSource属性

继承关系

Alt text
FrameworkElement->Control->ItemsControl->Selector->ListBox->ListView
3.本身不提供任何样式,但提供丰富的定制功能

文本控件
基本概念

1.文本控件有三个,分别是:TextBox,RichTextBox和PasswordBox

继承关系

Alt text

范围控件
基本概念

1.ScrollBar,ProgressBar,SlideBar,范围控件

继承关系

Control->RangeBase->ScrollBar,ProgressBar,SlideBar.
RangeBase是一个抽象类,定义了4个基本属性:LargeChange,SmallChange,Maximum,Minimum

所有控件关系图




关注我,WPF FlyUI框架作者

github地址:https://github.com/AatroxBot/FlyUI.Demo.git

码云地址:https://gitee.com/Aatrox1/fly-ui-demo.git

posted @   Aatrox1  阅读(34)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示