1、WPF控件。
• 按钮:Button 和 RepeatButton。
• 对话框:OpenFileDialog、PrintDialog 和 SaveFileDialog。
• 数字墨迹:InkCanvas 和 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。
2、对象声明方式
使用开始标记和结束标记将对象实例化为xml格式的元素:
对象中可以包含其他对象的:
若不想包含对象也可以用一个结束标
Wpf笔记
最新推荐文章于 2024-05-12 15:28:22 发布