当前位置: 首页 > news >正文

网站开发 顺德做新闻微网站有哪些

网站开发 顺德,做新闻微网站有哪些,天元建设集团有限公司七公司,什么是大型门户网站要搞点小软件#xff0c;又不想使用图标和图标类库#xff0c;突然想起FontAwesome,试了一下#xff0c;还挺方便的#xff0c;先弄了几个最常用的图标试一下#xff0c;弄了几个按钮的样式#xff0c;看一下效果#xff1a;看一下fontAwesome使用方法#xff1a;首先从… 要搞点小软件又不想使用图标和图标类库突然想起FontAwesome,试了一下还挺方便的先弄了几个最常用的图标试一下弄了几个按钮的样式看一下效果看一下fontAwesome使用方法首先从官网下载字体地址http://www.fontawesome.com.cn/下载后把其中的 fontawesome-webfont.ttf 复制到软件目录添加一个几个资源字典Base.xaml : ResourceDictionary xmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:sysclr-namespace:System;assemblymscorlibResourceDictionary.MergedDictionariesResourceDictionary SourceColors.xaml//ResourceDictionary.MergedDictionariessys:Double x:KeyFontSizeMini 12/sys:Doublesys:Double x:KeyFontSizeNormal 14/sys:Doublesys:Double x:KeyFontSizeLarge 16/sys:DoubleFontFamily x:KeyFontAwesomepack://application;,,,/Fonts/#FontAwesome/FontFamily!--FontAwesome Icons Strings--sys:String x:KeySettingIcon#xf013;/sys:Stringsys:String x:KeyMinsizeIcon#xf2d1;/sys:Stringsys:String x:KeyMaxsizeIcon#xf2d0;/sys:Stringsys:String x:KeyCloseIcon#xf00d;/sys:StringStyle x:KeyBaseStyle TargetType{x:Type Control}Setter PropertyFontFamily Value微软雅黑/Setter PropertyFontSize Value{StaticResource FontSizeNormal}/Setter PropertyBorderThickness Value0/ /StyleStyle x:KeyIconButtonBaseStyle TargetTypeButtonSetter PropertyFontFamily Value{StaticResource FontAwesome}/Setter PropertyBorderThickness Value0/ /Style /ResourceDictionary Colors.xamlResourceDictionary xmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlColor x:KeyBlack#000000/ColorSolidColorBrush x:KeyBlackBrush Color{StaticResource Black}/Color x:KeyWhite#FFFFFF/ColorSolidColorBrush x:KeyWhiteBrush Color{StaticResource White}/Color x:KeyTransWhite#33dddddd/ColorSolidColorBrush x:KeyTransWhiteBrush Color{StaticResource TransWhite}/Color x:KeyGray#B8BABC/ColorSolidColorBrush x:KeyGrayBrush Color{StaticResource Gray}/Color x:KeyVeryDarkGray#C0C0C0/ColorSolidColorBrush x:KeyVeryDarkGrayBrush Color{StaticResource VeryDarkGray}/Color x:KeyDarkGray#C3C0C3/ColorSolidColorBrush x:KeyDarkGrayBrush Color{StaticResource DarkGray}/Color x:KeyLightGray#ECECEC/ColorSolidColorBrush x:KeyLightGrayBrush Color{StaticResource LightGray}/Color x:KeyVeryLightGray#F3F3F3/ColorSolidColorBrush x:KeyVeryLightGrayBrush Color{StaticResource VeryLightGray}/Color x:KeyButtonBack#07BDFD/ColorSolidColorBrush x:KeyButtonBackBrush Color{StaticResource ButtonBack}/Color x:KeyButtonHoverBack#1FC7FD/ColorSolidColorBrush x:KeyButtonHoverBackBrush Color{StaticResource ButtonHoverBack}/ /ResourceDictionary ButtonStyles.xaml (重点)ResourceDictionary xmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:localclr-namespace:GQResourceDictionary.MergedDictionariesResourceDictionary SourceBase.xaml//ResourceDictionary.MergedDictionariesStyle TargetType{x:Type Button} x:KeyIgnoreHoverSetter PropertyBackground ValueTransparent/Setter PropertyBorderThickness Value0/Setter PropertyTemplateSetter.ValueControlTemplate TargetType{x:Type Button}Border Padding{TemplateBinding Padding} Background{TemplateBinding Background}ContentPresenter VerticalAlignmentCenter HorizontalAlignmentCenter//Border/ControlTemplate/Setter.Value/Setter /StyleStyle TargetType{x:Type Button} BasedOn{StaticResource BaseStyle}Setter PropertyBackground Value{StaticResource ButtonBackBrush}/Setter PropertyForeground Value{StaticResource WhiteBrush}/Setter PropertyFocusVisualStyle Value{x:Null}/Setter PropertyPadding Value20 10/Setter PropertyMargin Value10/Setter PropertyTemplateSetter.ValueControlTemplate TargetType{x:Type ButtonBase}Border x:NameborderCornerRadius6BorderBrush{TemplateBinding BorderBrush}BorderThickness{TemplateBinding BorderThickness}Background{TemplateBinding Background} SnapsToDevicePixelsTrueGridTextBlock Text{TemplateBinding Content} FocusableFalse FontFamily{TemplateBinding FontFamily}FontSize{TemplateBinding FontSize}HorizontalAlignment{TemplateBinding HorizontalContentAlignment} Margin{TemplateBinding Padding} SnapsToDevicePixels{TemplateBinding SnapsToDevicePixels} VerticalAlignment{TemplateBinding VerticalContentAlignment}//Grid/BorderControlTemplate.TriggersEventTrigger RoutedEventMouseEnterBeginStoryboardStoryboardColorAnimation To{StaticResource ButtonHoverBack} Duration0:0:0.3 Storyboard.TargetNameborder Storyboard.TargetPropertyBackground.Color//Storyboard/BeginStoryboard/EventTriggerEventTrigger RoutedEventMouseLeaveBeginStoryboardStoryboardColorAnimation From{StaticResource ButtonHoverBack} Duration0:0:0.3 Storyboard.TargetNameborder Storyboard.TargetPropertyBackground.Color//Storyboard/BeginStoryboard/EventTriggerTrigger PropertyIsEnabled ValueFalseSetter PropertyBackground TargetNameborder Value{StaticResource VeryDarkGrayBrush}//Trigger/ControlTemplate.Triggers/ControlTemplate/Setter.Value/Setter /StyleStyle x:KeyIconButton TargetTypeButton BasedOn{StaticResource IconButtonBaseStyle}Setter PropertyBackground ValueTransparent/Setter PropertyForeground Value{StaticResource WhiteBrush}/Setter PropertyMargin Value0/Setter PropertyHeight Value32/Setter PropertyPadding Value5/Setter PropertyWidth Value{Binding ActualHeight,RelativeSource{RelativeSource Self}}/Setter PropertyTemplateSetter.ValueControlTemplate TargetType{x:Type ButtonBase}Border x:NameborderBorderBrush{TemplateBinding BorderBrush}BorderThickness{TemplateBinding BorderThickness}Background{TemplateBinding Background} SnapsToDevicePixelsTrueViewboxTextBlock Text{TemplateBinding Content} FocusableFalse FontFamily{TemplateBinding FontFamily}HorizontalAlignment{TemplateBinding HorizontalContentAlignment} Margin{TemplateBinding Padding} FontSize{TemplateBinding FontSize}SnapsToDevicePixels{TemplateBinding SnapsToDevicePixels} VerticalAlignment{TemplateBinding VerticalContentAlignment}//Viewbox/BorderControlTemplate.TriggersEventTrigger RoutedEventMouseEnterBeginStoryboardStoryboardColorAnimation To{StaticResource TransWhite} Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetPropertyBackground.Color//Storyboard/BeginStoryboard/EventTriggerEventTrigger RoutedEventMouseLeaveBeginStoryboardStoryboardColorAnimation From{StaticResource TransWhite} Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetPropertyBackground.Color//Storyboard/BeginStoryboard/EventTriggerTrigger PropertyIsEnabled ValueFalseSetter PropertyBackground TargetNameborder Value{StaticResource VeryDarkGrayBrush}//Trigger/ControlTemplate.Triggers/ControlTemplate/Setter.Value/Setter /StyleStyle x:KeyIconGrowButton TargetType{x:Type Button} BasedOn{StaticResource IconButtonBaseStyle}Setter PropertyBackground ValueTransparent/Setter PropertyForeground Value{StaticResource WhiteBrush}/Setter PropertyMargin Value0/Setter PropertyHeight Value32/Setter PropertyPadding Value5/Setter PropertyWidth Value{Binding ActualHeight,RelativeSource{RelativeSource Self}}/Setter PropertyTemplateSetter.ValueControlTemplate TargetType{x:Type ButtonBase}Border x:NameborderBorderBrush{TemplateBinding BorderBrush}BorderThickness{TemplateBinding BorderThickness}Background{TemplateBinding Background} SnapsToDevicePixelsTrueRenderTransformOrigin0.5,0.5Border.RenderTransformScaleTransform//Border.RenderTransformViewboxTextBlock Text{TemplateBinding Content} FocusableFalse FontFamily{TemplateBinding FontFamily}HorizontalAlignment{TemplateBinding HorizontalContentAlignment} Margin{TemplateBinding Padding} FontSize{TemplateBinding FontSize}SnapsToDevicePixels{TemplateBinding SnapsToDevicePixels} VerticalAlignment{TemplateBinding VerticalContentAlignment}//Viewbox/BorderControlTemplate.TriggersEventTrigger RoutedEventMouseEnterBeginStoryboardStoryboardDoubleAnimation To1.3 Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetProperty(RenderTransform).(ScaleTransform.ScaleX)/DoubleAnimation To1.3 Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetProperty(RenderTransform).(ScaleTransform.ScaleY)//Storyboard/BeginStoryboard/EventTriggerEventTrigger RoutedEventMouseLeaveBeginStoryboardStoryboardDoubleAnimation To1 Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetProperty(RenderTransform).(ScaleTransform.ScaleX)/DoubleAnimation To1 Duration0:0:0.2 Storyboard.TargetNameborder Storyboard.TargetProperty(RenderTransform).(ScaleTransform.ScaleY)//Storyboard/BeginStoryboard/EventTriggerTrigger PropertyIsEnabled ValueFalseSetter PropertyBackground TargetNameborder Value{StaticResource VeryDarkGrayBrush}//Trigger/ControlTemplate.Triggers/ControlTemplate/Setter.Value/Setter /StyleStyle x:KeyTextButton TargetType{x:Type Button} BasedOn{StaticResource BaseStyle}Setter PropertyBackground ValueTransparent/Setter PropertyForeground Value{StaticResource WhiteBrush}/Setter PropertyBorderThickness Value0/Setter PropertyPadding Value20 10/Setter PropertyMargin Value0 10/Setter PropertyTemplateSetter.ValueControlTemplate TargetType{x:Type ButtonBase}Border x:NameborderCornerRadius6BorderBrush{TemplateBinding BorderBrush}BorderThickness{TemplateBinding BorderThickness}Background{TemplateBinding Background} SnapsToDevicePixelsTrueTextBlock Text{TemplateBinding Content} FocusableFalse FontFamily{TemplateBinding FontFamily}FontSize{TemplateBinding FontSize}HorizontalAlignment{TemplateBinding HorizontalContentAlignment} Margin{TemplateBinding Padding} SnapsToDevicePixels{TemplateBinding SnapsToDevicePixels} VerticalAlignment{TemplateBinding VerticalContentAlignment}//BorderControlTemplate.TriggersTrigger PropertyIsMouseOver ValueTrueSetter PropertyForeground Value{StaticResource DarkGrayBrush}//TriggerTrigger PropertyIsEnabled ValueFalseSetter PropertyForeground Value{StaticResource VeryDarkGrayBrush}//Trigger/ControlTemplate.Triggers/ControlTemplate/Setter.Value/Setter /Style    !--上述5个样式 参考自 https://www.youtube.com/playlist?listPLrW43fNmjaQVYF4zgsD0oL9Iv6u23PI6M有改动不完全一样你可以根据需要自行修改-- /ResourceDictionary 然后在App.xaml内添加所有资源字典Application x:ClassGQ.Appxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:localclr-namespace:GQStartupUri/Windows/LoginWindow.xamlxmlns:sysclr-namespace:System;assemblymscorlibxmlns:arrclr-namespace:System.Collections.Generic;assemblymscorlibApplication.ResourcesResourceDictionaryResourceDictionary.MergedDictionariesResourceDictionary Source/Styles/Base.xaml/ResourceDictionary Source/Styles/Panel3DStyle.xaml/ResourceDictionary Source/Styles/ButtonStyles.xaml//ResourceDictionary.MergedDictionaries/ResourceDictionary/Application.Resources /Application 最后创建一个LoginWindow.xaml测试这几个样式并使用FontAwesomeWindow x:ClassGQ.LoginWindowxmlnshttp://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:localclr-namespace:GQmc:IgnorabledAllowsTransparencyTrueWindowStyleNoneBackgroundGrayWindowStartupLocationCenterScreenTitleMainWindow Height470 Width497GridStackPanel HorizontalAlignmentCenter VerticalAlignmentCenterStackPanel OrientationHorizontal HorizontalAlignmentCenterButton FontFamily{StaticResource FontAwesome} Content{StaticResource SettingIcon}/Button FontFamily{StaticResource FontAwesome} Content{StaticResource MinsizeIcon}/Button FontFamily{StaticResource FontAwesome} Content{StaticResource MaxsizeIcon}/Button FontFamily{StaticResource FontAwesome} Content{StaticResource CloseIcon}//StackPanelStackPanel OrientationHorizontal HorizontalAlignmentCenterButton Style{StaticResource IconGrowButton} Content{StaticResource SettingIcon}/Button Style{StaticResource IconGrowButton} Content{StaticResource MinsizeIcon}/Button Style{StaticResource IconGrowButton} Content{StaticResource MaxsizeIcon}/Button Style{StaticResource IconGrowButton} Content{StaticResource CloseIcon}//StackPanelStackPanel OrientationHorizontal HorizontalAlignmentCenterButton Style{StaticResource IconButton} Content{StaticResource SettingIcon}/Button Style{StaticResource IconButton} Content{StaticResource MinsizeIcon}/Button Style{StaticResource IconButton} Content{StaticResource MaxsizeIcon}/Button Style{StaticResource IconButton} Content{StaticResource CloseIcon}//StackPanelStackPanel OrientationHorizontal HorizontalAlignmentCenterButton Style{StaticResource TextButton} FontFamily{StaticResource FontAwesome} Content{StaticResource SettingIcon}/Button Style{StaticResource TextButton} FontFamily{StaticResource FontAwesome} Content{StaticResource MinsizeIcon}/Button Style{StaticResource TextButton} FontFamily{StaticResource FontAwesome} Content{StaticResource MaxsizeIcon}/Button Style{StaticResource TextButton} FontFamily{StaticResource FontAwesome} Content{StaticResource CloseIcon}//StackPanel/StackPanel/Grid /Window 这样控件就能使用完成了虽然看起来很麻烦但收益还是不小的以后再添加别的图标就很方便了。效果图当然喽做正经的软件图标肯定是由设计给的不是用这些网上的这些图标只能自己玩玩嘿嘿如果喜欢点个赞呗~
http://www.pierceye.com/news/310721/

相关文章:

  • 乌海市网站建设基于asp的网络课程网站开发
  • 关掉自己做的网站网页设计与制作服务公司
  • 视频相亲网站开发成本分类信息网站推广的意义
  • 域名和网站网站开发项目视频
  • 色流网站怎么做东营建筑信息网
  • 做能支付的网站贵吗网络安全工程师考证
  • 下载类网站开发条件环球资源网成立时间
  • 客户如何找到做网站宣传的律师免费虚拟主机空间
  • 点击网站出现微信二维码的链接怎么做网架制造厂
  • 服装网站建设环境分析一家专门做房产特卖的网站
  • 网站推广方式方法品牌建设的阶段和步骤是什么
  • 游戏开发平台seo的定义
  • 北京住房和城乡建设部网站官网可信赖的购物网站建设
  • 网站百度一直没有收录热狗网站关键词优化
  • 视频网站开发价格本地app开发公司电话
  • 网站设计风格介绍北京市建设工程信息网如何登录
  • 怎么创建一个属于自己的网站怎么制作做网站
  • 大学加强网站建设与管理的通知莱芜金点子租房信息港
  • 网站的营销与推广杭州五旋科技网站建设怎么样
  • 莱芜四中网站如何优化网站目录结构
  • 深圳公司网站设计哪家好北京装修公司十大排名
  • 如何制作一个好网站做国际网站找阿里
  • 南京制作网站wordpress网站源码上传
  • 做装修效果图的网站有哪些软件泉州营销型网站设计
  • 让路由器做网站服务器一级建造师价格最新行情
  • 白沟做网站wordpress批量编辑
  • 网站充值支付宝收款怎么做天元建设集团有限公司第七建筑工程公司
  • 定制家具网站源代码海口本地网站
  • 公司网站建设平台公司做网站开发流程
  • wordpress网站怎么打开很慢劳务派遣和外包一样吗