示例#1
0
 /// <summary>
 /// Applies a theme to the specified button.
 /// </summary>
 /// <param name="button">A button to apply the theme to.</param>
 /// <param name="theme">The theme to apply to the button.</param>
 /// <param name="fontSize">The size of the font for the button text.</param>
 public static void ApplyTheme(this UIButton button, ButtonTheme theme, int fontSize)
 {
     button.ApplyTheme(
         theme,
         null,
         default(UIEdgeInsets),
         false,
         fontSize);
 }
示例#2
0
 /// <summary>
 /// Applies a theme to the specified button.
 /// </summary>
 /// <param name="button">A button to apply the theme to.</param>
 /// <param name="theme">The theme to apply to the button.</param>
 /// <param name="image">An image for the button.</param>
 /// <param name="imageInsets">Optional inset or outset margins for the rectangle around the button’s image.</param>
 /// <param name="imageLeft">Optional flag to identify if the image for the button should be shown to the left of the text, otherwise to the right; the default is true.</param>
 public static void ApplyTheme(
     this UIButton button,
     ButtonTheme theme,
     UIImage image,
     UIEdgeInsets imageInsets = default(UIEdgeInsets),
     bool imageLeft           = true)
 {
     button.ApplyTheme(
         theme,
         image,
         imageInsets,
         imageLeft,
         ViewFontSizes.StandardFontSize);
 }
示例#3
0
 /// <summary>
 /// Applies a theme to the specified button.
 /// </summary>
 /// <param name="button">A button to apply the theme to.</param>
 /// <param name="theme">The theme to apply to the button.</param>
 public static void ApplyTheme(this UIButton button, ButtonTheme theme)
 {
     button.ApplyTheme(theme, ViewFontSizes.StandardFontSize);
 }