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

网站无法被百度收录wordpress图片本地化慢

网站无法被百度收录,wordpress图片本地化慢,电商网名,建网站要买服务器吗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://www.yayakq.cn/news/652426/

相关文章:

  • 企业自己建网站怎么建网站建设公司东莞
  • 兴县做网站的公司昌乐营销型网站建设
  • 企业培训网站模板企业网站后台模版
  • 网站开发需要经过的几个主要阶段长春市大学生网站建设
  • 网站关键词部署网页开发自学
  • 使用腾讯云建设网站教程v2ex wordpress
  • 五莲做网站济宁网页设计
  • 别人在百度冒用公司旗号做网站seo的英文全称是什么
  • wordpress 搜索本站wordpress文章填写关键词描述标题
  • 淘宝站外网站可以做吗跨境电商怎么样
  • 建筑网站登陆页面网站制作公司套路
  • 越野车网站模板wordpress php5.6版本
  • 帝国cms企业网站程序ui设计
  • 网站开发印花税wordpress博客软件
  • 东莞市建设安监局网站首页微信管理
  • 网站建设管理ppt模板事业单位门户网站建设的建议
  • 安徽休宁建设厅网站创意产品设计方案
  • 网站配色的原理和方法免费做微信小程序
  • wordpress建自己的网站沃尔玛网上商城app官方下载
  • 购物商城网站开发目的文档怎么做出有品牌感的网站
  • 卖水果做哪个网站好网站建设中数据库的维护论文
  • 怎么进入凡科建设的网站seo外链招聘
  • 06628网页制作与网站建设用备份的网站代码做网站步骤
  • 花都网站建设网页设计石家庄的网站建设
  • 建一个门户网站要多少钱怎样做娱乐网站
  • 网站ar怎么做招代理网站建设公司
  • 福州公司网站建设_erp系统软件免费版
  • 动态做网站wordpress搬家问题
  • 收废品做网站怎么样做网站
  • 匀贵网站建设wordpress hexo主题