1. REMOVE (HIDE) A SPECIFIC SKIN 
Traverse through the gallery group collection, then through its gallery item collection and hide a corresponding item:

private void InitRibbonSkinGallery() {
SkinHelper.InitSkinGallery(skinGalleryBarItem);
} string[] skinsToHide = {"Black","Blue","Seven","Sharp" }; // populate with names of unnecessary skins
private void HideSkins(string[] skinsToHide) {
for(var i = ; i < skinGalleryBarItem.Gallery.Groups.Count; i++) {
var group = skinGalleryBarItem.Gallery.Groups[i];
if(group == null) {
continue;
}
for(var j = ; j < group.Items.Count; j++) {
var item = group.Items[j];
if(item == null) {
continue;
}
foreach(var skin in skinsToHide) {
if(String.Equals(item.Caption, skin)) {
item.Visible = false;
}
}
}
}
}
Private Sub InitRibbonSkinGallery()
SkinHelper.InitSkinGallery(skinGalleryBarItem)
End Sub Private skinsToHide() As String = {"Black","Blue","Seven","Sharp" } 'populate with names of unnecessary skins
Private Sub HideSkins(ByVal skinsToHide() As String)
For i = To skinGalleryBarItem.Gallery.Groups.Count -
Dim group = skinGalleryBarItem.Gallery.Groups(i)
If group Is Nothing Then
Continue For
End If
For j = To group.Items.Count -
Dim item = group.Items(j)
If item Is Nothing Then
Continue For
End If
For Each skin In skinsToHide
If String.Equals(item.Caption, skin) Then
item.Visible = False
End If
Next skin
Next j
Next i
End Sub

This is discussed in the How to remove certain skins from the bonus skins collection  ticket.

2. REMOVE  A SPECIFIC SKIN GROUP 
Remove a required group from the collection:

string skinGroup = "Standard Skins";
RemoveSkinGroups(skinGroup); void RemoveSkinGroups(string skinGroup) {
skinGalleryBarItem.Gallery.Groups.Remove(skinGalleryBarItem.Gallery.Groups.OfType<GalleryItemGroup>().First(x => String.Equals(x.Caption, skinGroup)));
}
Private skinGroup As String = "Standard Skins"
RemoveSkinGroups(skinGroup) void RemoveSkinGroups(String skinGroup)
skinGalleryBarItem.Gallery.Groups.Remove(skinGalleryBarItem.Gallery.Groups.OfType(Of GalleryItemGroup)().First(Function(x) String.Equals(x.Caption, skinGroup)))

This issue is discussed in the How to remove the "Theme Skin" skin group from the In-Ribbon gallery populated with available skins  thread.

3. REMOVE GROUPING 

Fill the In-Ribbon and In-Dropdown gallery with required skins manually. 
To obtain all available skins in your project, use the SkinManager.Skinsproperty. To populate the In-Dropdown gallery, handle theRibbonGalleryBarItem.GalleryInitDropDownGalleryevent:

DevExpress.XtraBars.RibbonGalleryBarItem skinGalleryBarItem;
SkinContainerCollection skins; void InitSkinGallery() {
//SkinHelper.InitSkinGallery(skinGalleryBarItem, true);
skins = SkinManager.Default.Skins; for (int i = ; i < ; i++) {
int index = rgbiSkins.Gallery.Groups[].Items.Add(new GalleryItem());
GalleryItem item = skinGalleryBarItem.Gallery.Groups[].Items[index];
item.Description = skins[index].SkinName;
item.Image = galleryImageCollection.Images[i];
}
} private void skinGalleryBarItem_GalleryInitDropDownGallery(object sender, InplaceGalleryEventArgs e) {
e.PopupGallery.AllowHoverImages = false;
e.PopupGallery.ItemClick += new GalleryItemClickEventHandler(PopupGallery_ItemClick);
for (int i = ; i < e.PopupGallery.Groups[].Items.Count; i++) {
GalleryItem item = e.PopupGallery.Groups[].Items[i];
item.Description = skins[i].SkinName;
item.Caption = skins[i].SkinName;
}
}
void PopupGallery_ItemClick(object sender, GalleryItemClickEventArgs e) {
defaultBarAndDockingController1.Controller.LookAndFeel.SkinName = e.Item.Description;
}
Private skinGalleryBarItem As DevExpress.XtraBars.RibbonGalleryBarItem
Private skins As SkinContainerCollection Private Sub InitSkinGallery()
'SkinHelper.InitSkinGallery(skinGalleryBarItem, true);
skins = SkinManager.Default.Skins For i As Integer = To
Dim index As Integer = rgbiSkins.Gallery.Groups().Items.Add(New GalleryItem())
Dim item As GalleryItem = skinGalleryBarItem.Gallery.Groups().Items(index)
item.Description = skins(index).SkinName
item.Image = galleryImageCollection.Images(i)
Next i
End Sub Private Sub skinGalleryBarItem_GalleryInitDropDownGallery(ByVal sender As Object, ByVal e As InplaceGalleryEventArgs)
e.PopupGallery.AllowHoverImages = False
AddHandler e.PopupGallery.ItemClick, AddressOf PopupGallery_ItemClick
For i As Integer = To e.PopupGallery.Groups().Items.Count -
Dim item As GalleryItem = e.PopupGallery.Groups().Items(i)
item.Description = skins(i).SkinName
item.Caption = skins(i).SkinName
Next i
End Sub
Private Sub PopupGallery_ItemClick(ByVal sender As Object, ByVal e As GalleryItemClickEventArgs)
defaultBarAndDockingController1.Controller.LookAndFeel.SkinName = e.Item.Description
End Sub

See Skin Gallery - How to remove skin grouping ticket to learn more.

4. CHANGE A SKIN NAME 
Traverse through the gallery group collection, then through its gallery item collection, obtain a required GalleryItem  and change the GalleryItem.Caption property for this purpose. 
See How to change/remove the DevExpress Style caption from the Skin Menu/Drop-down gallery  for more information.

5. CHANGE A SKIN ICON 

Traverse through the gallery group  collection, then through its gallery item  collection, obtain a required GalleryItem  and set the Image and HoverImage properties. 
See Skin Gallery - How to change a skin icon (image) and name (caption)  for more information.

How to customize Skin Gallery - Remove / rename skins and groups的更多相关文章

  1. link,unlink,remove, rename函数

    link函数:创建一个指向现有文件的链接的方法是使用 个人理解为cp命令 #include <unistd.h> int link( const char *existingpath, c ...

  2. COC建筑拖动的实现

    最近在玩COC,多体验一下手游的体验,因为自己毕竟一直是做页游的,有些观念需要转变一下. 好像偏了,玩了几次之后突然想起COC那个地图拖动的自己之前实现过,那是2010年左右的时候,模拟经营类页游大行 ...

  3. 01:adminLTE2基本使用

    1.1 adminLTE介绍 1.adminLTE 介绍 1.基于Bootstrap3高度可定制的响应式管理模板,免去前端架构师大量的js和css的编写 2.adminLTE除了可以使用bootstr ...

  4. 巨蟒python全栈开发-第11阶段 ansible_project2

    一个NB的网站: https://www.toolfk.com/ CDN:将用户的需求送到最近的节点:内容分发网络 有些是专门做CDN的工具 常用的markdown是需要知道的,短信有字数限制. we ...

  5. Python标准模块--import

    1 模块简介 作为一个Python初学者,你首先要学会的知识就是如何引入其它模块或者包.但是,我发现有些开发者虽然使用Python很多年,依然不了解Python引入机制的灵活性.这篇文章,我们就会研究 ...

  6. git版本控制管理实践-4

    vcs: version control system 版本控制系统 local vcs, 集中式版本控制系统: centralized vcs; 分布式vcs: distributed vcs Lo ...

  7. DataTables样式

    Styling 官方链接 AdminLTE HTML代码 <div class="row"> <div class="col-xs-12"&g ...

  8. Mysql 关键字及保留字

    Table 10.2 Keywords and Reserved Words in MySQL 5.7 ACCESSIBLE (R) ACCOUNT[a] ACTION ADD (R) AFTER A ...

  9. NFS工作原理及配置文件详解

    nfs工作原理流程       如上图所示,当访问程序通过NFS客户端向NFS服务端存取文件时,其请求数据流程如下几点:     1.首先用户访问网站程序,由程序在NFS客户端上发出NFS文件存取功能 ...

随机推荐

  1. echarts如何更改表格主题颜色

    vue项目中,需要使用echarts时,需要根据UI设计图进行图标颜色修改 方法一: 1.在script中引入echarts以及主题样式: import echarts from 'echarts'; ...

  2. STM32 HAL库利用DMA实现串口不定长度接收方法

    参考:https://blog.csdn.net/u014470361/article/details/79206352 我这里使用的芯片是 F1 系列的,主要是利用 DMA 数据传输方式实现的,在配 ...

  3. Vue 实现前进刷新,后退不刷新的效果

    需求一: 在一个列表页中,第一次进入的时候,请求获取数据.点击某个列表项,跳到详情页,再从详情页后退回到列表页时,不刷新.也就是说从其他页面进到列表页,需要刷新获取数据,从详情页返回到列表页时不要刷新 ...

  4. vue中的生命周期

    vue中的生命周期 1,vue生命周期简介: 1.beforeCreate 在实例初始化之后,数据观测和event/watcher时间配置之前被调用.   2.created 实例已经创建完成之后被调 ...

  5. 2016 10 28考试 dp 乱搞 树状数组

    2016 10 28 考试 时间 7:50 AM to 11:15 AM 下载链接: 试题 考试包 这次考试对自己的表现非常不满意!! T1看出来是dp题目,但是在考试过程中并没有推出转移方程,考虑了 ...

  6. asp.net-DirectoryEntry基本操作入门

    第一个实例代码 DirectorySearcher命名空間 (System.DirectoryServices;) DirectorySearcher search = new DirectorySe ...

  7. HTML---经常使用标签总结与实践

    什么是HTML? 超文本标记语言,标准通用标记语言下的一个应用.    "超文本"就是指页面内能够包括图片.链接,甚至音乐.程序等非文字元素. 超文本标记语言的结构包含" ...

  8. Bing地图切片原理

    Bing地图切片系统 Bing地图提供了一个可以直接平移和缩放的世界地图.为了让地图操作更加平滑和及时响应,我们选择提前渲染地图不同层级的细节,并把每个层级的地图切割成为瓦片以便快速的还原展示.这篇文 ...

  9. Android application framework 分析[in process]

    application activity application service application UI system application sdk tool JVM 1 activity t ...

  10. Oracle数据库经常使用经典查询

    本文收集了经常使用的数据库查询.须要数据库管理员权限: 1. 查询暂时表空间使用情况 SELECT TABLESPACE_NAME, TABLESPACE_SIZE / 1024 / 1024 TAB ...