商城网站开发用什么框架,微信小程序云开发费用,百度拍照搜索,济南微信网站制作一、介绍#xff1a; Material Design语言的一些重要功能包括 系统字体Roboto的升级版本 #xff0c;同时颜色更鲜艳#xff0c;动画效果更突出。杜拉特还简要谈到了新框架的一些变化。谷歌的想法是让谷歌平台上的开发者掌握这个新框架#xff0c;从而让所有应用就有统一的…一、介绍 Material Design语言的一些重要功能包括 系统字体Roboto的升级版本 同时颜色更鲜艳动画效果更突出。杜拉特还简要谈到了新框架的一些变化。谷歌的想法是让谷歌平台上的开发者掌握这个新框架从而让所有应用就有统一的外观就像是苹果向开发者提出的设计原则一样。谷歌还基于这种新的设计语言对本公司旗舰应用进行了重新设计包括安卓和网页端的Gmail和Calendar。大家可能还会记得最近曾看到过有关这些变动的文章 有些博客 已经掌握了外泄截屏显示经过了重新设计的Gmail界面更干净、更简约。在安卓平台上这种新界面被称为Material支持各种新动画效果具有内置的实时UI阴影以及可在不同屏幕之间切换的hero元素。-----这部分属于摘抄。 二、Material Design在WPF上下载 1.新建一个WPF项目 由于我安装的是VS2022版本所以我新建的项目版本是.NET6.0。
2.下载Material Design包 点击项目选择管理NuGet程序包… 搜索Material Design点击安装
三、.配置App.xaml 按照网上其他博主介绍是添加以下内容
ResourceDictionaryResourceDictionary.MergedDictionariesResourceDictionary Sourcepack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml /ResourceDictionary Sourcepack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml /ResourceDictionary Sourcepack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml /ResourceDictionary Sourcepack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml //ResourceDictionary.MergedDictionaries/ResourceDictionary
在我这里始终都会报错如下图 试了好久最后找到官方文档得到解决将上面内容换成如下 ResourceDictionaryResourceDictionary.MergedDictionariesmaterialDesign:BundledTheme BaseThemeLight PrimaryColorDeepPurple SecondaryColorLime /ResourceDictionary Sourcepack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml //ResourceDictionary.MergedDictionaries/ResourceDictionary完整App.xaml
Application x:ClassWpfApp1.Appxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:localclr-namespace:WpfApp1 xmlns:materialDesignhttp://materialdesigninxaml.net/winfx/xaml/themesStartupUriMainWindow.xamlApplication.ResourcesResourceDictionaryResourceDictionary.MergedDictionariesmaterialDesign:BundledTheme BaseThemeLight PrimaryColorDeepPurple SecondaryColorLime /ResourceDictionary Sourcepack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml //ResourceDictionary.MergedDictionaries/ResourceDictionary/Application.Resources
/Application
四、官方DemoAPP 该EXE提供了各种控件的样式和xaml代码如下图 点击左侧菜单栏可以选择不同控件 点击不同控件上的小图标会显示控件代码直接复制使用
五、控件添加界面 1.先在前端引用 xmlns:materialDesignhttp://materialdesigninxaml.net/winfx/xaml/themes 2.可以根据DemoApp上进行复制至此完美结束。