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

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多万,各种当前热门的网络手机奖励红包全部集成,另外还有热门电影和淘宝高额优惠券!很适合各类型的用户。

 

 

最新文章

  1. Android事件分发机制(上)
  2. 分享一个绿色版本 sql server 查询器,
  3. jquery的ajax提交form表单
  4. [HDU 4549] M斐波那契数列
  5. 装Oracle12C时遇到没有权限访问临时位置的解决方法
  6. cpu affinity (亲和性)
  7. Java NIO学习笔记 NIO选择器
  8. !JS实战之随机像素图
  9. MongoDB $type条件操作符
  10. 正确截取List指定位置的内容
  11. [SimplePlayer] 6. 音频同步
  12. ECS之Git服务器搭建
  13. mysql5.7 datetime 默认值为‘0000-00-00 00:00:00&#39;值无法创建问题解决
  14. Jenkins持续集成学习-Windows环境进行.Net开发2
  15. Android 设置Activity样式 透明度
  16. 如何创建线程第一种继承Thread类
  17. [转]Android SQLite
  18. HBase Filter程序样例及Shell(图)
  19. UESTC 1511(差分约束)
  20. C#学习历程(六)[ref 关键字的使用]

热门文章

  1. js常用函数
  2. MyBatis学习总结(七)&mdash;&mdash;Mybatis缓存
  3. Atitit &#160;DbServiceV4qb9&#160;数据库查询类库v4 新特性
  4. Atitit atiuse软件系列
  5. VS2012 MVC4 学习笔记-概览
  6. fir.im Weekly - 一切从知识重构开始
  7. css 弹出层-透明层
  8. angularjs with node service
  9. [html]三列居中自动伸缩的结构
  10. 打开android虚拟机时出现a repairable android virtual device