按钮:Button 和 RepeatButton
对话框: OpenFileDialog 、 PrintDialog和 SaveFileDialog
数字墨迹: SaveFileDialog和 InkPresenter
文档:DocumentViewer、FlowDocumentPageViewer、FlowDocumentReader、 FlowDocumentScrollViewer 和 StickyNoteControl
输入:TextBox、RichTextBox 和 PasswordBox
布局:Border、BulletDecorator、Canvas、DockPanel、Expander、Grid、GridView、GridSplitter、GroupBox、Panel、ResizeGrip、Separator、ScrollBar、ScrollViewer、StackPanel、Thumb、Viewbox、VirtualizingStackPanel、Window 和 WrapPanel。
媒体:Image、MediaElement 和 SoundPlayerAction。 §菜单:ContextMenu、Menu 和 ToolBar。
导航:Frame、Hyperlink、Page、NavigationWindow 和 TabControl
选择:CheckBox、ComboBox、ListBox、TreeView、RadioButton 和 Slider
用户信息:AccessText、Label、Popup、ProgressBar、StatusBar、TextBlock 和 ToolTip
自定义控件:UserControl
1、高度和宽度 不同尺寸的默认值: MinHeight MaxHeight Height MinWidth MaxWidth Width 0 Infinity NaN/Auto(自动)
其他尺寸: DesiredSize RenderSize ActualHeight/ActualWidth

本文详细介绍了WPF中的各种UI元素,如Button、TextBox、ComboBox等,并探讨了它们的重要属性,如尺寸、边距、可见性、对齐方式等。此外,还特别讨论了TextBox的TextWrapping、AcceptsReturn属性以及ComboBox的SelectedValue、IsEditable等特性,为开发者提供了深入理解WPF界面设计的宝贵资料。


被折叠的 条评论
为什么被折叠?



