check point
This commit is contained in:
27
framework/MaterialSkin.Core/Controls/MaterialDivider.cs
Normal file
27
framework/MaterialSkin.Core/Controls/MaterialDivider.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MaterialSkin.Controls
|
||||
{
|
||||
public sealed class MaterialDivider : Control, IMaterialControl
|
||||
{
|
||||
[Browsable(false)]
|
||||
public int Depth { get; set; }
|
||||
[Browsable(false)]
|
||||
public MaterialSkinManager SkinManager => MaterialSkinManager.Instance;
|
||||
[Browsable(false)]
|
||||
public MouseState MouseState { get; set; }
|
||||
|
||||
public MaterialDivider()
|
||||
{
|
||||
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
|
||||
|
||||
}
|
||||
|
||||
protected override void OnPaintBackground(PaintEventArgs pevent)
|
||||
{
|
||||
BackColor = SkinManager.ColorScheme.PrimaryColor;
|
||||
base.OnPaintBackground(pevent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user