Xamarin.Forms.InputKit icon indicating copy to clipboard operation
Xamarin.Forms.InputKit copied to clipboard

Trying to increase the height of the control

Open davidbuckleyni opened this issue 6 years ago • 2 comments
trafficstars

I tried to increase the height of the radio button just for pure example as below but then it disappears of the screen?.

   <input:RadioButtonGroupView x:Name="rbNotiationType">
                <input:RadioButton Text="+" HeightRequest="20" Scale="10" x:Name="rbPostive" />
                <input:RadioButton Text="-" HeightRequest="20"  Scale="10" x:Name="rbNegative" />

            </input:RadioButtonGroupView>

davidbuckleyni avatar Jul 04 '19 11:07 davidbuckleyni

Hi @davidbuckleyni You should try increasing size of circle and font via using CircleSize and TextFontSize instead of using Scale and HeightRequest:

   <input:RadioButtonGroupView x:Name="rbNotiationType">
                <input:RadioButton Text="+" CircleSize="20" TextFontSize="16" x:Name="rbPostive" />
                <input:RadioButton Text="-" CircleSize="20" TextFontSize="16" x:Name="rbNegative" />

            </input:RadioButtonGroupView>

Or if you want to increase only line height without resizing componenets, jsut give a little bit padding:

   <input:RadioButtonGroupView x:Name="rbNotiationType">
                <input:RadioButton Text="+" Padding="5,25"  x:Name="rbPostive" />
                <input:RadioButton Text="-" Padding="5,25"  x:Name="rbNegative" />
            </input:RadioButtonGroupView>

This will increase line height, radiobuttons will stay far from each other. Or you can use Spacing property of RadioButtonGroupView.

enisn avatar Jul 13 '19 09:07 enisn

I'm trying to increase the height of the advance input by using HeighRequest, however, it is increasing it at all. Should we increase the height with a different property? I would like to set a specific height only.

vhugogarcia avatar Jan 06 '20 15:01 vhugogarcia