本人开发的开发者技术变现资源聚集地,大家支持下,下面是网址

https://www.baiydu.com

 void InitSkinGallery()  ()       {         

         SkinHelper skinHelper = new SkinHelper();             RibbonControl masterRibbonControl = new RibbonControl();

             RibbonGalleryBarItem tempRibbonGalleryItem = new RibbonGalleryBarItem(new BarManager());             //  masterRibbonControl.ApplicationButtonDropDownControl = tempRibbonGalleryItem;             SkinHelper.InitSkinGallery(tempRibbonGalleryItem);   //初始化各种控件皮肤的方法             SkinHelper.InitSkinGallery(ribbonGalleryBarItem1);             //customRibbonGrallery.Gallery.Groups.RemoveAt(1);             //customRibbonGrallery.Gallery.Groups.RemoveAt(2);

             GalleryItemGroupCollection Collection = tempRibbonGalleryItem.Gallery.Groups;             //MessageBox.Show(Collection.Capacity.ToString());             int TempIndex = 0;

             GalleryItemGroup SkinGroup = new GalleryItemGroup();

             foreach (GalleryItemGroup singleItemGroup in Collection)             {                 TempIndex++;

                 for (int i = ; i < singleItemGroup.Items.Count; i++)                 {                     GalleryItem item = singleItemGroup.Items[i];

                     // GalleryItem itemx = new GalleryItem();

                     //  itemx.Caption = "";                     if (TempIndex == 1)                     {                         if (i == 0 || i == 5)                         {                             //textEdit1.Text = textEdit1.Text + "|" + item.Caption;                             SkinGroup.Items.Add(item);                         }                     }                     else if (TempIndex == 2)                     {                         if (i == 1 || i == 11 || i == 14)                         {                             // textEdit2.Text = textEdit2.Text + "|" + item.Caption;                             SkinGroup.Items.Add(item);                         }                     }                     else if (TempIndex == 3)                     {                         if (i == 2 || i == 3 || i == 4)                         {                             //textEdit3.Text = textEdit3.Text + "|" + item.Caption;                             SkinGroup.Items.Add(item);                         }                     }                     else                     {                     }

                 }             }             recombinationSkin.Gallery.Groups.Add(SkinGroup);             DefaultLookAndFeel Custom = new DefaultLookAndFeel();             Custom.LookAndFeel.SetSkinStyle("Office 2010 Blue");

                      //RibbonGralleryBarItem控件皮肤选择事件
private void recombinationSkin_GalleryItemClick(object sender, GalleryItemClickEventArgs e)
{
string SkinValue=e.Item.Caption;
DefaultLookAndFeel Custom = new DefaultLookAndFeel();
Custom.LookAndFeel.SetSkinStyle(SkinValue); }

本人创业做的一款androidApp, 下载量已经有2000多万,各种当前热门的网络手机奖励红包全部集成,另外还有热门电影和淘宝高额优惠券!很适合各类型的用户。

 

 

DevExpress Ribbongallerybaritem选择性皮肤重组的更多相关文章

  1. 使用DevExpress改变WinForm皮肤(VS)

    基于步入DevExpress的使用(VS),进一步使用DevExpress改变WinForm皮肤,适合初学者. 提示: 1.对于DevExpress菜单中的RepositoryItemComboBox ...

  2. DevExpress如何实现皮肤的添加及本地化

    DevExpress.XtraBars.Helpers.SkinHelper类允许您填充现有RibbonGalleryBarItem或任意菜单(PopupMenu或BarSubItem)项目对应的De ...

  3. DevExpress winform 友好皮肤

    DevExpress设置默认皮肤及各种皮肤样式   DevExpress设置默认皮肤及各种皮肤样式 设置默认皮肤代码: 在程序入口Program.cs里添加如下代码 引用using DevExpres ...

  4. 在Winform框架界面中改变并存储界面皮肤样式

    在本篇介绍的Winform界面样式改变及存储操作中,是指基于DevExpress进行界面样式的变化.一般情况下,默认我们会为客户提供多种DevExpress的界面皮肤以供个人喜好选择,默认DevExp ...

  5. DevExpress v17.2—WPF篇(一)

    用户界面套包DevExpress v17.2终于正式发布,本站将以连载的形式为大家介绍各版本新增内容.本文将介绍了DevExpress WPF v17.2 新的Hamburger Menu.Sched ...

  6. DevExpress Skins<2>

    Skins DevExpress WinForms控件包括许多现成的绘画主题(或外观),用于更改DevExpress表单和控件的外观.您可以通过运行WinForms演示应用程序并使用外观选择器在可用主 ...

  7. DevExpress皮肤样式

    [时间] 2016-02-15 11:41:11 天气晴 没有雾霾难得的好天气!!! [工具] (1)Visual Studio 2015 (2)DevExpress15.2.3 [感言] 一直以来都 ...

  8. Devexpress -换皮肤

    一.在项目下新建RibbonForm  命名为:useSkin 二.添加引用DevExpress.OfficeSkins      DevExpress.UserSkins.BonusSkins 三. ...

  9. devexpress设置皮肤、字体以及折叠菜单、伸缩Panel的实现

    1.为了体现系统的个性化,越来越多的系统增加了换肤功能.这里例举一个devexpress实现换肤的案例,效果图对比: 第二张图片中更换了皮肤与字体. 2.皮肤数据源绑定代码: //循环添加皮肤名称 f ...

随机推荐

  1. 第2讲 Redis常用命令与高级应用

    目录 一.redis数据类型 5. sorted sets类型和操作 二.Redis常用命令 1.键值相关命令 2.服务器相关命令 三. redis高级应用 1. 给redis服务器设置密码 2.持久 ...

  2. OutputCache属性详解(四)— SqlDependency

    目录 OutputCache概念学习 OutputCache属性详解(一) OutputCache属性详解(二) OutputCache属性详解(三) OutputCache属性详解(四)— SqlD ...

  3. TypeScript实例

    interface Person { firstName: string, lastName: string } function greeter(person: Person) { return p ...

  4. Codeforces Round #380 (Div. 2) 总结分享

    B. Spotlights 题意 有n×m个格子的矩形舞台,每个格子里面可以安排一个演员或聚光灯,聚光灯仅可照射一个方向(俯视,上下左右).若聚光灯能照到演员,则称为"good positi ...

  5. .NET面试题解析(00)-开篇来谈谈面试 & 系列文章索引

    系列文章索引: .NET面试题解析(01)-值类型与引用类型 .NET面试题解析(02)-拆箱与装箱 .NET面试题解析(03)-string与字符操作 .NET面试题解析(04)-类型.方法与继承 ...

  6. 深入理解PHP内核(四)概览-PHP脚本的执行

    本文链接:http://www.orlion.ml/236/ 下面以php命令行程序为例解释PHP脚本是怎么被执行的.例如如下脚本: <?php $str = 'hello world'; ec ...

  7. Android线程机制——AsyncTask

    对于Android为什么要使用多线程,因为从Android4.0之后,谷歌规定了网络操作不允许放在主线程中执行,由此就有了多线程的机制,有个JAVA学习经验的朋友一定知道多线程指的是什么,简单来讲就是 ...

  8. xlat指令...

    ;就是一个串str1, lea ebx, str1 然后我们ebx+1总是加上的是一个字节, 无论(串是word, byte, dword) . .model flat .stack include ...

  9. linux分享六:进程管理

    1:批量杀死进程 ps -ef|grep LOCAL=NO|grep -v grep|cut -c 9-15|xargs kill -9 或kill -9 `ps -ef|grep oracle|aw ...

  10. Linux的IO性能监控

    一般使用iostat命令监控I/O性能1.iostat命令可用参数列表: OPTIONS -c Display the CPU utilization report. -d Display the d ...