当前位置:网站首页>Do you understand this patch of the interface control devaxpress WinForms skin editor?
Do you understand this patch of the interface control devaxpress WinForms skin editor?
2022-07-07 01:04:00 【Interface development Starling】
Regular users may know , A few years ago, the official technical team thoroughly inspected WinForms Skin editor —— This new tool is now called “Skin Editor v2”, It is superior to its predecessor in all possible aspects .Skin Editor v2 Including the hierarchy of skin elements that are easier to find 、 Customizable labels 、 A series of very useful functions ( for example , You can Ctrl+ single click “ preview ” Any element in the panel to get a list of skin parts responsible for the appearance of a given element ), Support vector skin and palette .
obtain DevExpress WinForms v22.1 Official download
The enhancements introduced in the updated skin editor have a drawback …… If your goal is to meet the standard DevExpress Slightly modify the skin , You have to create a duplicate skin , This means that you must import and register custom skins . Besides , This process will generate almost the same skin in the skin selector - Original skin and your custom skin . To eliminate duplicates , You must also modify these selectors ( for example , Hide standard “Bezier” Skin and replace it with the one created in the skin editor “My Bezier”).
In order to eliminate these problems ,WinForm Skin editor (v21.1) With skin patch support , This skin patch is directly applied to the standard DevExpress List of visual changes to the skin , Skin patches eliminate generation for your project / Need to import custom skin .
How does this work ?
This is a good example of the skin patch use case : In vector Office 2019 Dock panel title in skin .

If you find the panel title font is too large , You can add BarAndDockingController And in "Docking" Some fonts are set manually . But doing so means no matter how active the skin is , Your hard coded panel fonts will be activated .
You can now repair your skin , Replace hard coding or create a new skin , Start the skin editor and select "New Skin Patch" tab . Enter the patch name 、 Save the local storage folder and destination of the output DevExpress The skin .

Find the element you want to modify , single click "Activate" And edit the required / Appropriate settings . In this example , We need to reduce "Docking" The text size increment of some elements under the category .

The patch is saved as a single .skinpatch file , Save and pass SkinManager.Default.RegisterSkinPatch Method to store it locally 、 Import a stream or assembly into Visual Studio In the project .
namespace MyApp{
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
SkinManager.Default.RegisterSkinPatch(Application.StartupPath +
"\\patches\\O2019C-Fonts.skinpatch");
//uncomment the following line to undo the skin patch
//SkinManager.Default.ResetSkin(SkinStyle.Office2019Colorful);
Application.Run(new MainForm());
}
}
}The figure below shows the standard "Office 2019 Colorful" The skin , It contains a patch , You can increment the text size from 6 Reduce to 2.

You can go further and change more elements in the patch , For example, modify "Docking > Dock Panels > Caption Buttons" Element to reduce button fill and size , This will shrink the panel title to better fit your new title font .
DevExpress WinForm | Download trial
DevExpress WinForm Have 180+ Components and UI library , for Windows Forms Platform to create influential business solutions .DevExpress WinForms It can perfectly build fluency 、 Beautiful and easy to use applications , Whether it's Office Style interface , Or analyze and process a large number of business data , It can be easily competent !
DevExpress Technology exchange group 6:600715373 Welcome to group discussion
边栏推荐
- A brief history of deep learning (I)
- Part 7: STM32 serial communication programming
- 在jupyter中实现实时协同是一种什么体验
- Alexnet experiment encounters: loss Nan, train ACC 0.100, test ACC 0.100
- View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
- JS+SVG爱心扩散动画js特效
- Learning notes 5: ram and ROM
- Threejs image deformation enlarge full screen animation JS special effect
- 以机房B级建设标准满足等保2.0三级要求 | 混合云基础设施
- 线段树(SegmentTree)
猜你喜欢

【JVM调优实战100例】05——方法区调优实战(下)
![[software reverse automation] complete collection of reverse tools](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[software reverse automation] complete collection of reverse tools

windows安装mysql8(5分钟)

第六篇,STM32脉冲宽度调制(PWM)编程

Telerik UI 2022 R2 SP1 Retail-Not Crack

Js+svg love diffusion animation JS special effects

筑梦数字时代,城链科技战略峰会西安站顺利落幕
![[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr](/img/4a/0dcc28f76ce99982f930c21d0d76c3.png)
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr

equals()与hashCode()

第四篇,STM32中断控制编程
随机推荐
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
再聊聊我常用的15个数据源网站
Leetcode (547) - number of provinces
C Primer Plus Chapter 14 (structure and other data forms)
深度学习简史(二)
There is an error in the paddehub application
筑梦数字时代,城链科技战略峰会西安站顺利落幕
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
How to get started and improve test development?
Fastdfs data migration operation record
Stm32f407 ------- SPI communication
Address information parsing in one line of code
Three methods to realize JS asynchronous loading
Dr selection of OSPF configuration for Huawei devices
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
BFS realizes breadth first traversal of adjacency matrix (with examples)
Dell笔记本周期性闪屏故障
「笔记」折半搜索(Meet in the Middle)