📄 xtabcontorlstyle.cs
字号:
namespace Imps.Client.Pc.XControls
{
using Imps.Client.Pc.Theme;
using Imps.Client.Pc.XControlStyle;
using System;
using System.Drawing;
using System.Xml;
public class XTabContorlStyle : StyleBase
{
private Color _backColor = Color.Transparent;
private Color _borderColor = Color.Black;
private Image _scrollImageButton;
private int _tabHeight = 0x2d;
private int _tabWidth = 0x23;
protected override void LoadStyle(XmlElement elem)
{
foreach (XmlAttribute attribute in elem.Attributes)
{
switch (attribute.Name)
{
case "TabWidth":
{
int.TryParse(attribute.Value, ref this._tabWidth);
continue;
}
case "TabHeight":
{
int.TryParse(attribute.Value, ref this._tabHeight);
continue;
}
case "BackColor":
{
this.BackColor = ThemeManager.GetColor(attribute.Value);
continue;
}
case "BorderColor":
{
this.BorderColor = ThemeManager.GetColor(attribute.Value);
continue;
}
case "ScrollImageButton":
break;
default:
{
continue;
}
}
this.ScrollImageButton = ThemeManager.GetImage(attribute.Value);
}
}
public Color BackColor
{
get
{
return this._backColor;
}
set
{
this._backColor = value;
}
}
public Color BorderColor
{
get
{
return this._borderColor;
}
set
{
this._borderColor = value;
}
}
public Image ScrollImageButton
{
get
{
return this._scrollImageButton;
}
set
{
this._scrollImageButton = value;
}
}
public int TabHeight
{
get
{
return this._tabHeight;
}
set
{
this._tabHeight = value;
}
}
public int TabWidth
{
get
{
return this._tabWidth;
}
set
{
this._tabWidth = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -