WPF常见控件(包含materialDesign)与属性 materialDesign:ColorZone: 用于在应用界面中创建有色区域,增加层级感和视觉吸引力。 materialDesign:DrawerHost:用于实现从屏幕一侧滑出的抽屉控件,经常与materialDesign:DrawerHost.LeftDrawerContent配套使用(这里的例子是设置左抽屉)。 DockPanel:布局控件,用于将其子元素排列在特定...
媒体: Image、 MediaElement和 SoundPlayerAction。 菜单: ContextMenu、 Menu和 ToolBar。 导航: Frame、 Hyperlink、 Page、 NavigationWindow和 TabControl。 选项: CheckBox、 ComboBox、 ListBox、 RadioButton和 Slider。 用户信息: AccessText、 Label、 Popup、 ProgressBar、 StatusBar、 TextBlock和 ToolTip。 L...
选择:CheckBox 、ComboBox 、ListBox 、TreeView 、RadioButton 和 Slider。 用户信息:AccessText 、Label 、Popup 、ProgressBar 、StatusBar 、TextBlock 和 ToolTip。 输入和命令 :控件通常检测和响应用户输入。WPF输入系统使用直接事件和路由事件来支持文本输入、焦点管理和鼠标定位。有关更多信息,请参见输入概述。
<SetterProperty="CellStyle"Value="{StaticResource MaterialDesignDataGridCell}"/> <!--<Setter Property="md:DataGridAssist.AutoGeneratedCheckBoxStyle" Value="{StaticResource MaterialDesignDataGridCheckBoxColumnStyle}" /> <Setter Property="md:DataGridAssist.AutoGeneratedEditingCheckBoxStyle" Value="{StaticResourc...
4个按钮使用MD控件4种样式(LIGHT、MID、DARK、ACCENT),附加属性 materialDesign:ColorZoneAssist.Mode 可以修改 GroupBox 的 Header 背景色,主要看 GroupBox 内的控件,CheckBox 与 ToggleButton 的外观已经修改。 3.参考 视频一:C# WPF Design UI: Material Design Custom Colors,配套源码:MaterialDesignCustomColor。
在你的项目中添加Material Design In XAML Toolkit引用,在Window或者UserControl的XAML文件中添加以下代码: ```xaml<Window xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" ...> <StackPanel> <materialDesign:TextBox Hint="Enter your name" /> <materialDesign:CheckBox Content="I...
Wpf之HandyControls与MaterialDesign混⽤之DataGrid ⾸先在App.Xaml引⼊相关资源 <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <!--Handy Control--> <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/> <ResourceDictionary ...
1" core:PasswordBoxHelper.Password="{Binding Password,Mode=TwoWay}"x:Name="FloatingPasswordBox"materialDesign:HintAssist.Hint="密码"materialDesign:HintAssist.Foreground="Green"materialDesign:TextFieldAssist.UnderlineBrush="Green"Style="{StaticResource MaterialDesignFloatingHintPasswordBox}"/><CheckBox Grid....
Material Design controls MaterialButtonYESYES MaterialCheckBoxYESYES MaterialComboBoxYESYES MaterialComboBoxItemYESYES MaterialDropDownYESYES MaterialFrameYESYES MaterialHamburgerYESYES MaterialHamburgerMenuYESYES MaterialHamburgerMenuItemYESYES MaterialListBoxYESYES ...
MaterialDesignThemes:主要用于界面的美化,通过NuGet包管理搜索MaterialDesignThemes直接安装 Prism.Wpf:是...