public void Set_Icon_Small__Next(ContentControl control)
 {
     if (tool.Orientation != Orientation.Horizontal)
     {
         Output.Write("Can only cycle through icons when Tool is in a Horizontal orientation.");
         return;
     }
     currentSmallIcon = tool.Icon == null ? IconImage.SilkAccept : currentSmallIcon.NextValue<IconImage>();
     tool.Icon = currentSmallIcon.ToImage();
 }
 /// <summary>Adds a button tool to the toolbar.</summary>
 /// <param name="toolbar">The toolbar to add to.</param>
 /// <param name="id">The unique identifier of the tool.</param>
 /// <param name="icon">The icon.</param>
 /// <param name="text">The text label.</param>
 /// <param name="orientation">The orientation of the label relative to the icon.</param>
 /// <param name="showDefaultBackground">Flag indicating whether the default background is rendered when the mouse is not over the tool.</param>
 /// <param name="toolTip">The tooltip</param>
 /// <param name="minWidth">The minimum width of the tool.</param>
 /// <param name="column">The index of the column the tool is in (0-based, zero by default).</param>
 /// <param name="row">The index of the row the tool is in (0-based, zero by default).</param>
 /// <param name="columnSpan">The number of rows the tool spans (1-based, one by default.  Must be 1 or greater).</param>
 /// <param name="rowSpan">The number of columns the tool spans (1-based, one by default.  Must be 1 or greater).</param>
 public static IButtonTool AddButton(
     this IToolBar toolbar,
     object id = null,
     IconImage icon = IconImage.SilkAccept,
     String text = null,
     Orientation orientation = Orientation.Horizontal,
     bool showDefaultBackground = false,
     string toolTip = null,
     int minWidth = 0,
     int? column = null,
     int? row = null,
     int? columnSpan = 1,
     int? rowSpan = 1)
 {
     return toolbar.AddButton(
         id,                    
         icon.ToImage(), text, 
         orientation, showDefaultBackground, toolTip, minWidth,
         column, row, columnSpan, rowSpan);
 }