using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using DevExpress.Utils;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using DevExpress.Utils;
//-------------------------
#region" Load "
private void Form1_Load(object sender, EventArgs e)
{
InitBadge();
}
#endregion
#region " Diger "
private void InitBadge()
{
adornerUIManager1.BeginUpdate();
DevExpress.Utils.VisualEffects.Badge badge;
badge = new DevExpress.Utils.VisualEffects.Badge();
badge.TargetElement =this.panelControl1;
badge.Properties.AllowGlyphSkinning = DefaultBoolean.True;
badge.Properties.Location = ContentAlignment.TopRight;
badge.Properties.Text ="123";
badge.Properties.Offset = new Point(Convert.ToInt32(-20), Convert.ToInt32(0)); //- rakam sağdan boşluk (X), 0 tam üst kenarın üzeri (Y)..
badge.Properties.TextMargin = new System.Windows.Forms.Padding(3);
badge.Properties.ImageStretchMargins = new System.Windows.Forms.Padding(14);
adornerUIManager1.Elements.Add(badge);
adornerUIManager1.EndUpdate();
}
#endregion
Yorumlar
Yorum Gönder