AButton IStepperRenderer.CreateButton()
        {
            var button = new MButton(MaterialContextThemeWrapper.Create(Context), null, Resource.Attribute.materialOutlinedButtonStyle);

            // the buttons are meant to be "square", but are usually wide,
            // so, copy the vertical properties into the horizontal properties
            button.SetMinimumWidth(button.MinimumHeight);
            button.SetMinWidth(button.MinHeight);
            button.SetPadding(button.PaddingTop, button.PaddingTop, button.PaddingBottom, button.PaddingBottom);

            return(button);
        }
Exemplo n.º 2
0
 public MaterialEntryRenderer(Context context) :
     base(MaterialContextThemeWrapper.Create(context))
 {
     VisualElement.VerifyVisualFlagEnabled();
 }
Exemplo n.º 3
0
 public MaterialTimePickerRenderer(Context context) : base(MaterialContextThemeWrapper.Create(context))
 {
 }