zoukankan      html  css  js  c++  java
  • DevExpress Ribbongallerybaritem选择性皮肤重组

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

    https://www.baiydu.com

     1 void InitSkinGallery()  ()       {         
     2 
     3         SkinHelper skinHelper = new SkinHelper();             RibbonControl masterRibbonControl = new RibbonControl();
     4 
     5             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);
     6 
     7             GalleryItemGroupCollection Collection = tempRibbonGalleryItem.Gallery.Groups;             //MessageBox.Show(Collection.Capacity.ToString());             int TempIndex = 0;
     8 
     9             GalleryItemGroup SkinGroup = new GalleryItemGroup();
    10 
    11             foreach (GalleryItemGroup singleItemGroup in Collection)             {                 TempIndex++;
    12 
    13                 for (int i = 0; i < singleItemGroup.Items.Count; i++)                 {                     GalleryItem item = singleItemGroup.Items[i];
    14 
    15                     // GalleryItem itemx = new GalleryItem();
    16 
    17                     //  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                     {                     }
    18 
    19                 }             }             recombinationSkin.Gallery.Groups.Add(SkinGroup);             DefaultLookAndFeel Custom = new DefaultLookAndFeel();             Custom.LookAndFeel.SetSkinStyle("Office 2010 Blue");
    20 
    21  
    22 
    23  
    24 
    25                      //RibbonGralleryBarItem控件皮肤选择事件
    26         private void recombinationSkin_GalleryItemClick(object sender, GalleryItemClickEventArgs e)
    27         {
    28             string SkinValue=e.Item.Caption;
    29            DefaultLookAndFeel Custom = new DefaultLookAndFeel();
    30            Custom.LookAndFeel.SetSkinStyle(SkinValue);
    31            
    32         }
    33 
    34  
    35 
    36  

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

      

     

  • 相关阅读:
    JS trim的实现
    采用 LinQ 替代 SortedDictionary
    Int Cint Fix 函数的区别
    iptables详解(13):iptables动作总结之二
    iptables详解(12):iptables动作总结之一
    iptables详解(11):iptables之网络防火墙
    iptables详解(10):iptables自定义链
    iptables详解(9):iptables的黑白名单机制
    iptables详解(8):iptables扩展模块之state扩展
    iptables详解(7):iptables扩展之udp扩展与icmp扩展
  • 原文地址:https://www.cnblogs.com/xiaoliao/p/3703435.html
Copyright © 2011-2022 走看看