Beispiel #1
0
        public void DrawTabInsertionMark(TabStripInsertionMarkRenderEventArgs e)
        {
            OnRenderTabInsertionMark(e);

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

            if (handler != null)
            {
                handler(this, e);
            }
        }
        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);
            }
        }
Beispiel #3
0
 protected virtual void OnRenderTabInsertionMark(TabStripInsertionMarkRenderEventArgs e)
 {
 }