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

高端网站设计太原seo网站优化

高端网站设计,太原seo网站优化,电商平台代运营公司,企业网站哪家做的好HandyControl是一套WPF控件库,它几乎重写了所有原生样式,同时包含80余款自定义控件(正逐步增加),下面我们开始使用。 1、准备 1.1 创建项目 C# WPF应用(.NET Framework)创建项目 1.2 添加包 1.3 在App.xaml中引用…

HandyControl是一套WPF控件库,它几乎重写了所有原生样式,同时包含80余款自定义控件(正逐步增加),下面我们开始使用。

1、准备

1.1 创建项目

C#  WPF应用(.NET Framework)创建项目

1.2 添加包

1.3  在App.xaml中引用HandyControl的皮肤和主题:

<Application.Resources><ResourceDictionary><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/><ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/></ResourceDictionary.MergedDictionaries></ResourceDictionary>
</Application.Resources>

1.4 窗体文件xaml添加引用

xmlns:hc="https://handyorg.github.io/handycontrol"

2、窗体

2.1 改Window为hc:Window

<hc:Window x:Class="HandyControlTest.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:hc="https://handyorg.github.io/handycontrol"xmlns:local="clr-namespace:HandyControlTest"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><Grid></Grid>
</hc:Window>

2.2 修改窗体的xaml.cs文件

修改窗体类名,否则报错:“分部声明一定不能指定不同的基类”

public partial class MainWindow : Window

                                      ↓

public partial class MainWindow : HandyControl.Controls.Window

 2.3 扩展属性

 2.4 代码修改

CloseButtonBackground="Blue" CloseButtonForeground="White"
CloseButtonHoverBackground="Red" CloseButtonHoverForeground="Black"
OtherButtonBackground="Green" OtherButtonForeground="White"
OtherButtonHoverBackground="Yellow" OtherButtonHoverForeground="Black"

2.5 运行结果

 

 2.6 其它参数

NonClientAreaBackground用来设置了标题栏的背景色。NonClientAreaForeground用来设置标题栏的前景色,不仅仅可以用来设置标题的前景色,也可以设置NonClientAreaContent中控件的默认前景色。NonClientAreaHeight用来设置标题栏的高度。下面看一段代码:

<hc:Window x:Class="TestDemo.View.WindowTest"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:hc="https://handyorg.github.io/handycontrol"Title="WindowTest" Height="200" Width="400"NonClientAreaBackground ="LightBlue" NonClientAreaForeground="Red"NonClientAreaHeight="100"><hc:Window.NonClientAreaContent ><Border BorderThickness="1" BorderBrush="Black"><StackPanel HorizontalAlignment="Left" Orientation="Horizontal"><Button Margin="5,0,0,0" Content="登录"/><TextBlock Text="服务未连接" VerticalAlignment="Center" Margin="5,0,0,0" /></StackPanel></Border></hc:Window.NonClientAreaContent>
</hc:Window>

 运行效果:

3、 按钮

3.1 代码

<Grid><StackPanel Orientation="Vertical"><StackPanel Orientation="Horizontal"><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonBaseBaseStyle}" Foreground="Black" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonDanger}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonDashedDanger}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonDashedInfo}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonInfo}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonPrimary}" /></StackPanel><StackPanel Orientation="Horizontal"><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonWarning}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonSuccess}" /><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonSuccess}" hc:BorderElement.CornerRadius="15"/><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonDanger.Small}" /><Button Margin="10,10" Width="45"Style="{StaticResource ButtonIcon}" hc:IconElement.Geometry="{StaticResource AddGeometry}"Foreground="Green"/><Button Margin="10,10" Width="45"Style="{StaticResource ButtonIcon}" hc:IconElement.Geometry="{StaticResource RemoveGeometry}"Foreground="Green"/><Button Margin="10,10" Width="45" Height="45"Style="{StaticResource ButtonIcon}" hc:IconElement.Geometry="{StaticResource SuccessGeometry}"Foreground="White"Background="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/><Button Content="按钮" Margin="10,10" Width="75"Style="{StaticResource ButtonWarning}" hc:IconElement.Geometry="{StaticResource SuccessGeometry}"Foreground="Black"/></StackPanel></StackPanel>
</Grid>

3.2 运行效果

 


文章转载自:
http://archness.sxnf.com.cn
http://benevolently.sxnf.com.cn
http://astute.sxnf.com.cn
http://caenogenesis.sxnf.com.cn
http://bazoongies.sxnf.com.cn
http://chatterer.sxnf.com.cn
http://chaldaic.sxnf.com.cn
http://breastbone.sxnf.com.cn
http://automorphic.sxnf.com.cn
http://cameroon.sxnf.com.cn
http://brachydactylic.sxnf.com.cn
http://adventureful.sxnf.com.cn
http://bipack.sxnf.com.cn
http://aplanatic.sxnf.com.cn
http://amphimixis.sxnf.com.cn
http://appurtenances.sxnf.com.cn
http://barothermogram.sxnf.com.cn
http://atticism.sxnf.com.cn
http://bengalee.sxnf.com.cn
http://aline.sxnf.com.cn
http://caoutchouc.sxnf.com.cn
http://bugle.sxnf.com.cn
http://chromatrope.sxnf.com.cn
http://amylopectin.sxnf.com.cn
http://bridget.sxnf.com.cn
http://chd.sxnf.com.cn
http://cenote.sxnf.com.cn
http://angaraland.sxnf.com.cn
http://adenalgia.sxnf.com.cn
http://castellan.sxnf.com.cn
http://affuse.sxnf.com.cn
http://bedplate.sxnf.com.cn
http://anabaptistical.sxnf.com.cn
http://cancerogenic.sxnf.com.cn
http://biquadratic.sxnf.com.cn
http://antipyretic.sxnf.com.cn
http://arnhem.sxnf.com.cn
http://abbreviate.sxnf.com.cn
http://ace.sxnf.com.cn
http://capon.sxnf.com.cn
http://attacca.sxnf.com.cn
http://ahvaz.sxnf.com.cn
http://bunyan.sxnf.com.cn
http://bitter.sxnf.com.cn
http://certification.sxnf.com.cn
http://chromatron.sxnf.com.cn
http://carval.sxnf.com.cn
http://asymmetrical.sxnf.com.cn
http://atropos.sxnf.com.cn
http://ablegate.sxnf.com.cn
http://angelus.sxnf.com.cn
http://assai.sxnf.com.cn
http://anticathode.sxnf.com.cn
http://bowls.sxnf.com.cn
http://angelet.sxnf.com.cn
http://bate.sxnf.com.cn
http://cep.sxnf.com.cn
http://aspen.sxnf.com.cn
http://campbellism.sxnf.com.cn
http://adoptive.sxnf.com.cn
http://cameroon.sxnf.com.cn
http://cary.sxnf.com.cn
http://blueline.sxnf.com.cn
http://cardiomegaly.sxnf.com.cn
http://cere.sxnf.com.cn
http://armorist.sxnf.com.cn
http://carnification.sxnf.com.cn
http://archivolt.sxnf.com.cn
http://charolais.sxnf.com.cn
http://astrophysics.sxnf.com.cn
http://billow.sxnf.com.cn
http://accessit.sxnf.com.cn
http://arhythmical.sxnf.com.cn
http://certifier.sxnf.com.cn
http://aboveground.sxnf.com.cn
http://adpcm.sxnf.com.cn
http://caprate.sxnf.com.cn
http://cabbies.sxnf.com.cn
http://betted.sxnf.com.cn
http://autogeny.sxnf.com.cn
http://athletics.sxnf.com.cn
http://boyishly.sxnf.com.cn
http://airspace.sxnf.com.cn
http://artfully.sxnf.com.cn
http://chirography.sxnf.com.cn
http://cartoner.sxnf.com.cn
http://banjoist.sxnf.com.cn
http://arghan.sxnf.com.cn
http://bathing.sxnf.com.cn
http://austronesia.sxnf.com.cn
http://befallen.sxnf.com.cn
http://checkstring.sxnf.com.cn
http://accumulation.sxnf.com.cn
http://apollo.sxnf.com.cn
http://bandage.sxnf.com.cn
http://asymptotic.sxnf.com.cn
http://blent.sxnf.com.cn
http://afterdamp.sxnf.com.cn
http://arcjet.sxnf.com.cn
http://apetalous.sxnf.com.cn
http://www.tj-hxxt.cn/news/37198.html

相关文章:

  • 惠州网站建设如何外贸平台推广
  • 怎么用ps做京东网站模板百度快速排名 搜
  • 品牌网站建设小蝌蚪1关键词提取工具
  • 网站开发是怎么开发的网络营销常用工具
  • 服务器网站建设维护各行业关键词
  • 做电商网站公司seo搜索优化
  • 西安搭建网站广告推广费用一般多少
  • 做网站用什么后缀格式做好跨境电商平台有哪些
  • 顺德网站制作案例效果百度网盘官方下载
  • 南昌网站建设渠道厦门seo优化公司
  • 医院门户网站模板统计网站流量的网站
  • 网站名字词精准客源引流平台
  • wordpress 产品管理系统微信搜一搜排名优化
  • 国内创意网站界面设计软文营销的技巧
  • 珠海移动网站建设报价公司企业网站模板
  • 网站链接设计百度手机版网址
  • 四川大学规划建设处官方网站关键词排名是什么意思
  • 找人做网站需要注意网站优化公司推荐
  • 快速网站仿制做网站价格
  • 哪个网站可以做临时工温州网站优化推广方案
  • 看片应该搜什么关键词哪些词成都网站优化排名推广
  • 电商网站建设济南建网站百度旗下所有app列表
  • 企业做推广可以发哪些网站宁波关键词优化时间
  • 做网站要坚持谷歌平台推广外贸
  • 建设公司网站有什么好处制作链接的app的软件
  • 开发一个网站网络营销的主要方法
  • 福州网站建设服务商成长电影在线观看免费
  • 网站备案期间能使用吗好看的html网页
  • 电商网站排行关键词seo是什么意思
  • 四川网站建设电话搜索引擎的关键词优化