コード例 #1
0
        public void DrawTreeIcon(Graphics g, Rectangle rc, bool expanded)
        {
            if (IsAppThemed)
            {
/*
 *                              ThemePart part = GetGlyphPart();
 *                              if(part != null)
 *                              {
 *                                      ThemePartState partState = part.States[expanded ? "OPENED" : "CLOSED"];
 *
 *                                      Rectangle rcClip = new Rectangle((int)g.ClipBounds.Left, (int)g.ClipBounds.Top, (int)g.ClipBounds.Width, (int)g.ClipBounds.Height);
 *                                      try
 *                                      {
 *                                              partState.DrawBackground(g, rc, rcClip);
 *                                      }
 *                                      catch(Exception ex)
 *                                      {
 *                                              Trace.WriteLine("Failed to DrawTreeIcon: " + ex.Message);
 *                                      }
 *                                      return;
 *                              }
 */
            }
            DefaultControlPainter.DoDrawTreeIcon(g, rc, expanded);
        }
コード例 #2
0
 public Size GetTreeIconSize(Graphics g, Rectangle rc)
 {
     return(DefaultControlPainter.DoGetTreeIconSize(rc));
 }