public static void AsLargeButtonWithImage(this LayoutControlItem buttonControlItem, ApplicationIcon applicationIcon, string text)
        {
            buttonControlItem.AdjustControlSize(UIConstants.Size.ADD_REMOVE_BUTTON_WIDTH, UIConstants.Size.ADD_REMOVE_BUTTON_HEIGHT);
            var button = buttonControlItem.Control as SimpleButton;

            button?.InitWithImage(applicationIcon, IconSizes.Size24x24, text: text, imageLocation: ImageLocation.TopCenter);
        }
Exemple #2
0
 /// <summary>
 /// Only sets the control item width. Height will be calculated dynamically
 /// </summary>
 public static void AdjustControlWidth(this LayoutControlItem layoutControlItem, int width)
 {
     //using 0 allows the control witdh to be calculated dynamically
     layoutControlItem.AdjustControlSize(width, 0);
 }
Exemple #3
0
 /// <summary>
 /// Only sets the control item height. Width will be calculated dynamically
 /// </summary>
 public static void AdjustControlHeight(this LayoutControlItem layoutControlItem, int height)
 {
     //using 0 allows the control witdh to be calculated dynamically
     layoutControlItem.AdjustControlSize(0, height);
 }