DevExpress Ribbongallerybaritem选择性皮肤重组
2024-10-18 14:53:05
本人开发的开发者技术变现资源聚集地,大家支持下,下面是网址
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多万,各种当前热门的网络手机奖励红包全部集成,另外还有热门电影和淘宝高额优惠券!很适合各类型的用户。
最新文章
- Android事件分发机制(上)
- 分享一个绿色版本 sql server 查询器,
- jquery的ajax提交form表单
- [HDU 4549] M斐波那契数列
- 装Oracle12C时遇到没有权限访问临时位置的解决方法
- cpu affinity (亲和性)
- Java NIO学习笔记 NIO选择器
- !JS实战之随机像素图
- MongoDB $type条件操作符
- 正确截取List指定位置的内容
- [SimplePlayer] 6. 音频同步
- ECS之Git服务器搭建
- mysql5.7 datetime 默认值为‘0000-00-00 00:00:00&#39;值无法创建问题解决
- Jenkins持续集成学习-Windows环境进行.Net开发2
- Android 设置Activity样式 透明度
- 如何创建线程第一种继承Thread类
- [转]Android SQLite
- HBase Filter程序样例及Shell(图)
- UESTC 1511(差分约束)
- C#学习历程(六)[ref 关键字的使用]
热门文章
- js常用函数
- MyBatis学习总结(七)&mdash;&mdash;Mybatis缓存
- Atitit &#160;DbServiceV4qb9&#160;数据库查询类库v4 新特性
- Atitit atiuse软件系列
- VS2012 MVC4 学习笔记-概览
- fir.im Weekly - 一切从知识重构开始
- css 弹出层-透明层
- angularjs with node service
- [html]三列居中自动伸缩的结构
- 打开android虚拟机时出现a repairable android virtual device