网站快照怎么更新,深圳网站建设全包,网站报名系统怎么做,wordpress文章幻灯片代码文章目录 前言相关资源快速开始快速开始说明地址 吐槽一下 前言
MD全称MaterialDesignInXamlToolkit#xff0c;MaterialDesign和Bootstrap一样#xff0c;都是一个UI风格库。相当于衣服中的休闲服#xff0c;汉服#xff0c;牛仔裤一样#xff0c;就是风格不一样的Ui框架… 文章目录 前言相关资源快速开始快速开始说明地址 吐槽一下 前言
MD全称MaterialDesignInXamlToolkitMaterialDesign和Bootstrap一样都是一个UI风格库。相当于衣服中的休闲服汉服牛仔裤一样就是风格不一样的Ui框架
相关资源 Github 地址
MD 实例资源下载地址 快速开始
快速开始说明地址
如果是普通的WPF程序在App.xaml里面进行如下设置
Application x:ClassExample.Appxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:materialDesignhttp://materialdesigninxaml.net/winfx/xaml/themesStartupUriMainWindow.xamlApplication.ResourcesResourceDictionaryResourceDictionary.MergedDictionariesmaterialDesign:BundledTheme BaseThemeLight PrimaryColorDeepPurple SecondaryColorLime /ResourceDictionary Sourcepack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml / /ResourceDictionary.MergedDictionaries/ResourceDictionary/Application.Resources
/Application打开示例Demo MainWindow.xaml代码如下
Window x:ClassWPF.MainWindowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:materialDesignhttp://materialdesigninxaml.net/winfx/xaml/themesxmlns:localclr-namespace:WPFmc:IgnorabledTitleMainWindow Height450 Width800GridButtonIsEnabled{Binding DataContext.ControlsEnabled, RelativeSource{RelativeSource FindAncestor, AncestorTypeWindow}}Style{StaticResource MaterialDesignFloatingActionMiniLightButton}ToolTipMaterialDesignFloatingActionMiniLightButtonmaterialDesign:PackIcon Width30Height30KindAlarm //Button/Grid
/Window 说明导入成功
可以在左侧使用想要的组件用于快速UI开发点击右下角都有点击事例代码 吐槽一下
Prism是侵入式框架就是它给了你全套的解决方案但是你必须按照Prism给的方案去解决。侵入式太强不太喜欢还是自己写好一点。