mirror of https://github.com/yhuse/SunnyUI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
724 B
20 lines
724 B
using System.Drawing;
|
|
|
|
namespace Sunny.UI.Demo
|
|
{
|
|
public partial class UIFlowItem : UIUserControl
|
|
{
|
|
public UIFlowItem()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void UIFlowItem_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
|
|
{
|
|
e.Graphics.FillEllipse(Color.Lime, new Rectangle(10, 10, 20, 20));
|
|
e.Graphics.DrawString(Text, Font, ForeColor, new Rectangle(35, 0, Width, 40), ContentAlignment.MiddleLeft);
|
|
e.Graphics.DrawLine(ForeColor, 10, 40, Width - 20, 40);
|
|
e.Graphics.DrawString("Hello SunnyUI !", Font, ForeColor, new Rectangle(10, 40, Width, Height - 40), ContentAlignment.MiddleLeft);
|
|
}
|
|
}
|
|
}
|