使用Telerik StyleMananger 改变Silverlight Button样式

Telerik 支持更改以下控件样式

  • System.Windows.Button

  • System.Windows.ScrollViewer

  • System.Windows.CheckBox

  • System.Windows.TextBox

  • System.Windows.RadioButton

  • System.Windows.ListBox

  • System.Windows.PasswordBox

  • System.Windows.RepeatButton

  • System.Windows.Tooltip

需要在App.Xaml中的修改,红色是添加的代码

?





1

2

3

4

5

6

7

8

9

<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

             <span style="color: rgb(255, 0, 0);">xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"</span>

             x:Class="TestDemo.App"

             >

    <Application.Resources>

       <span style="color: rgb(255, 0, 0);"> <Style TargetType="Button"/></span>

    </Application.Resources>

</Application>

在后台程序中修改,其中红色是需要添加的代码


public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
StyleManager.ApplicationTheme = new Windows7Theme();
InitializeComponent();
StyleManager.SetBasedOn(((Style)Current.Resources[typeof(Button)]), StyleManager.ApplicationTheme);
}

使用Telerik StyleMananger 改变Silverlight Button样式,布布扣,bubuko.com

时间: 2024-08-15 02:44:14

使用Telerik StyleMananger 改变Silverlight Button样式的相关文章

android_重写button样式

这样的button样式应该源自IOS.假设安卓上实现,则须要使用android上面的layer-list来实现. 事实上layer-list有点像framlayout,作用就是覆盖. 先说一下实现原理:先画一个矩形.就是我们所示红色边框. 然后再画一个矩形将白色背景覆盖上面,设置android:left | right | top |bottom值.能够实现边框的大小. 然后在button里面设置background属性就好了,以下附上源代码. 由于三个button形状都不一样,所以要设置三个l

wpf image button样式

1:image button样式 <Style x:Key="Button.File" TargetType="Button"> <Setter Property="Cursor" Value="Hand"></Setter> <Setter Property="Template" > <Setter.Value> <ControlTempl

android中样式和自定义button样式

1)自定义button样式 一.采用图片方式 首先新建Android XML文件,类型选Drawable,根结点选selector,自定义一个文件名. 随后,开发环境自动在新建的文件里加了selector结点,我们只需要在selector结点里写上三种状态时显示的背景图片(按下.获取焦点,正常)即可.具体如下: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="

改变滚动条的样式

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>改变滚动条默认样式</title> <style> *{ margin: 0; padding: 0; } /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar{ width: 3px; /*滚动条宽

Android Button 样式 圆角

Android应用端开发中,在设置button样式的时候,为了使减少布局中图片的使用量,则 我们可以在selectoer选择器中运用Android系统中自带的shape组件来代替图片,这样可以减少 app的索赞内存的大小. 当焦点集中的时候: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/and

Linux的shell中echo改变输出显示样式

Linux的shell中echo改变输出显示样式 echo -e "\033[32;49;1m [DONE] \033[39;49;0m" 或echo -e "\e[32;49;1m [DONE] \033[39;49;0m" 输出结果 :[DONE] 文本终端的颜色可以使用“ANSI非常规字符序列”来生成.举例: echo -e "\033[44;37;5m ME \033[0m COOL" 以上命令设置背景成为蓝色,前景白色,闪烁光标,输出字

36种漂亮的CSS3网页按钮Button样式

<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>36种漂亮的CSS3网页按钮Button样式</title> <style type="text/css"> body{ background: #f5faff; } .demo_con{ width: 960px; m

36种漂亮的CSS3网页按钮Button样式,总有你喜欢的

<!DOCTYPE HTML><html lang="en-US"><head><meta charset="UTF-8"><title>36种漂亮的CSS3网页按钮Button样式</title><style type="text/css">body{ background: #f5faff;}.demo_con{width: 960px;margin:40px

纯css改变select默认样式

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <style> select.sty1 { /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/ border: solid 1px #000; /*很关键:将默认的select选择框样式