Ejemplo n.º 1
0
        public void DrawTabInsertionMark(TabStripInsertionMarkRenderEventArgs e)
        {
            OnRenderTabInsertionMark(e);

            var handler = Events[EventRenderTabInsertionMark] as EventHandler <TabStripInsertionMarkRenderEventArgs>;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        protected override void OnRenderTabInsertionMark(TabStripInsertionMarkRenderEventArgs e)
        {
            var padding = e.TabStrip.Padding;
            var height  = e.TabStrip.Height;

            var boundsDown = new Rectangle(e.Location - 3, padding.Top + 1, 7, 4);
            var boundsUp   = new Rectangle(e.Location - 4, height - padding.Bottom - 5, 8, 5);

            using (var path = GetTriangleDownPath(boundsDown))
            {
                e.Graphics.FillPath(Brushes.Black, path);
            }

            using (var path = GetTriangleUpPath(boundsUp))
            {
                e.Graphics.FillPath(Brushes.Black, path);
            }
        }
Ejemplo n.º 3
0
 protected virtual void OnRenderTabInsertionMark(TabStripInsertionMarkRenderEventArgs e)
 {
 }