首页 > Web开发 > 详细

使用Telerik StyleMananger 改变Silverlight Button样式

时间:2014-05-07 20:09:54      阅读:463      评论:0      收藏:0      [点我收藏+]

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
             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>

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

bubuko.com,布布扣
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);
      }
bubuko.com,布布扣

 

 

 

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

使用Telerik StyleMananger 改变Silverlight Button样式

原文:http://www.cnblogs.com/ZJ199012/p/3709657.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!