예제 #1
0
 /// <summary>
 /// Draws CrumbBarOverflowButton. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
 /// do not want default rendering to occur do not call the base implementation. You can call OnRenderCrumbBarOverflowItem method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public override void DrawCrumbBarOverflowItem(ButtonItemRendererEventArgs e)
 {
     CrumbBarItemViewPainter painter = PainterFactory.GetCrumbBarItemViewPainter(e.ButtonItem);
     if (painter != null)
     {
         if (painter is IOffice2007Painter)
             ((IOffice2007Painter)painter).ColorTable = m_ColorTable;
         painter.PaintOverflowButton(e.ButtonItem, e.ItemPaintArgs);
     }
     base.DrawCrumbBarOverflowItem(e);
 }
예제 #2
0
 /// <summary>
 /// Draws CrumbBarOverflowButton. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
 /// do not want default rendering to occur do not call the base implementation. You can call OnRenderCrumbBarOverflowItem method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawCrumbBarOverflowItem(ButtonItemRendererEventArgs e)
 {
     OnRenderCrumbBarOverflowItem(e);
 }
예제 #3
0
        /// <summary>
        /// Draws ButtonItem. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
        /// do not want default rendering to occur do not call the base implementation. You can call OnRenderButtonItem method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawButtonItem(ButtonItemRendererEventArgs e)
        {
            ButtonItemPainter painter = PainterFactory.CreateButtonPainter(e.ButtonItem);
            if (painter != null)
            {
                if (painter is IOffice2007Painter)
                    ((IOffice2007Painter)painter).ColorTable = m_ColorTable;
                painter.PaintButton(e.ButtonItem, e.ItemPaintArgs);
            }

            base.DrawButtonItem(e);
        }
예제 #4
0
 /// <summary>
 /// Raises RenderCrumbBarOverflowItem event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderCrumbBarOverflowItem(ButtonItemRendererEventArgs e)
 {
     if (RenderCrumbBarOverflowItem != null)
         RenderCrumbBarOverflowItem(this, e);
 }
예제 #5
0
 /// <summary>
 /// Draws CrumbBarItemView. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
 /// do not want default rendering to occur do not call the base implementation. You can call OnRenderCrumbBarItemView method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawCrumbBarItemView(ButtonItemRendererEventArgs e)
 {
     OnRenderCrumbBarItemView(e);
 }
예제 #6
0
 /// <summary>
 /// Raises RenderCrumbBarItemView event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderCrumbBarItemView(ButtonItemRendererEventArgs e)
 {
     if (RenderCrumbBarItemView != null)
         RenderCrumbBarItemView(this, e);
 }
예제 #7
0
 /// <summary>
 /// Draws ButtonItem. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
 /// do not want default rendering to occur do not call the base implementation. You can call OnRenderButtonItem method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawButtonItem(ButtonItemRendererEventArgs e)
 {
     OnRenderButtonItem(e);
 }
예제 #8
0
 /// <summary>
 /// Raises RenderButtonItem event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderButtonItem(ButtonItemRendererEventArgs e)
 {
     if (RenderButtonItem != null)
         RenderButtonItem(this, e);
 }