# wpf-learning **Repository Path**: qinpeng_it/wpf-learning ## Basic Information - **Project Name**: wpf-learning - **Description**: wpf学习,学习了第三天了,刚刚布局 Bind/ - 数据绑定练习 Brush/ - 画刷学习 Control/ - 控件练习(Button、ComboBox、Label、TextBox) Convert/ - 值转换器 Models/ - 数据模型 Panel/ - 布局面板(Grid、StackPanel、WrapPanel、DockPanel、Canvas、Border、UniformGri - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-28 - **Last Updated**: 2026-04-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: WPF, WPFUI, StackPanel, MVVM, Material-Icons ## README # WPF学习 ## 项目结构 ``` WpfApp/ ├── App.xaml / App.xaml.cs # 应用入口 ├── MainWindow.xaml / .cs # 主窗口 │ ├── Assets/Images/ # 图片资源 │ ├── Bind/ # 数据绑定 │ ├── Array.xaml / .cs │ ├── MyButton.cs │ ├── MyWindow.xaml / .cs │ ├── Style.xaml / .cs │ ├── Test.xaml / .cs │ └── Test2.xaml / .cs │ ├── Brush/ # 画刷学习 │ ├── Brush.xaml / .cs │ ├── Test.xaml / .cs │ ├── Test2.xaml / .cs │ └── Test3.xaml / .cs │ ├── Control/ # 控件练习 │ ├── ButtonTest.xaml / .cs │ ├── TestComboBox.xaml / .cs │ ├── TestLabel.xaml / .cs │ └── TestTextBox.xaml / .cs │ ├── Convert/ # 值转换器 │ ├── EqualsConverter.cs │ ├── Human.cs │ ├── RadioButtonClipConverter.cs │ ├── StringEqualsConverter.cs │ ├── StringToHumanTypeConvert.cs │ └── Test.xaml / .cs │ ├── CreateType.xaml / .cs # 类型创建 │ ├── Models/ # 数据模型 │ ├── MainMenuItem.cs │ └── MenuItem.cs │ ├── Panel/ # 布局面板 │ ├── Border/Test.xaml / .cs │ ├── Canvas/Test.xaml / .cs │ ├── Demo.xaml / .cs │ ├── DockPanel/ │ │ ├── Test.xaml / .cs │ │ └── TestDockPanel.xaml / .cs │ ├── Grid/ │ │ ├── ColumnSpan.xaml / .cs │ │ ├── ColumnWidth.xaml / .cs │ │ ├── FourGrid.xaml / .cs │ │ ├── LeftRight.xaml / .cs │ │ ├── ShowGridLIne.xaml / .cs │ │ ├── Test.xaml / .cs │ │ ├── TestGrid.xaml / .cs │ │ └── TopDown.xaml / .cs │ ├── StackPanel/ │ │ ├── Auto.xaml / .cs │ │ ├── Horizontal.xaml / .cs │ │ ├── Select.xaml / .cs │ │ ├── Test.xaml / .cs │ │ └── TestStackPanel.xaml / .cs │ ├── UniformGrid/ │ │ ├── Test.xaml / .cs │ │ └── Test2.xaml / .cs │ └── WrapPanel/ │ ├── Test.xaml / .cs │ ├── Test2.xaml / .cs │ ├── Test3.xaml / .cs │ └── WrapPanel.xaml / .cs │ ├── Test/ # 测试页面 │ ├── Test.xaml / .cs │ └── Test2.xaml / .cs │ ├── ViewModels/ # 视图模型 │ ├── FruitViewModel.cs │ ├── MainViewModel.cs │ └── UserViewModel.cs │ ├── Views/ # 视图页面 │ └── AirMonitorMain.xaml / .cs # 空压机监测系统主页面 │ ├── Components/ # 组件 │ ├── AirCompressor.xaml / .cs # 空压机组件 │ └── Tank.xaml / .cs # 储气罐组件 │ └── Win11/ # Win11风格 └── SystemSettings.xaml / .cs ``` ## WPF布局 | 标题 | 描述 | | --- | --- | | Grid | 网格布局 | | UniformGrid | 均分布局 | | StackPanel | 栈式布局 | | WrapPanel | 自动换行布局 | | DockPanel | 停靠布局 | | Canvas | 画布布局 | | Border | 边框装饰 | ## Brush画刷学习 ![输入图片说明](WpfApp/Images/WPF%E5%AD%A6%E4%B9%A0_Brush%E7%94%BB%E5%88%B7.png)