コード例 #1
0
        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);
        }