mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-03 23:59:26 +03:00
Moved classes out of subfolders. Moved enums to be within the same file as their main class. Added new DarkControl superclass.
42 lines
861 B
C#
42 lines
861 B
C#
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace DarkUI.Controls
|
|
{
|
|
public enum DarkControlState
|
|
{
|
|
Normal,
|
|
Hover,
|
|
Pressed
|
|
}
|
|
|
|
public enum DarkContentAlignment
|
|
{
|
|
Center,
|
|
Left,
|
|
Right
|
|
}
|
|
|
|
public class DarkControl : Control
|
|
{
|
|
#region Property Region
|
|
|
|
[Browsable(false)]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
public new Image BackgroundImage
|
|
{
|
|
get { return base.BackgroundImage; }
|
|
}
|
|
|
|
[Browsable(false)]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
public new ImageLayout BackgroundImageLayout
|
|
{
|
|
get { return base.BackgroundImageLayout; }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|