Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Button size is not exactly, BorderRadius is not working

$
0
0

left label code

xaml

<Label x:Name="presentBtn" Text="선물함" FontSize="16" HorizontalOptions="Start"  HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Grid.Column="0" BackgroundColor="#A8D2F1">

c#

presentBtn.HeightRequest = 45.0 * (double)App.ScreenWidth / 720.0;
    presentBtn.WidthRequest = 150.0* (double)App.ScreenWidth / 720.0;

.
.
.

right button code

xaml

        <Button x:Name="ticketBtn" Text="티켓충전" HorizontalOptions="End"  FontSize="16" Clicked="changeTicketCharge" Grid.Column="1" VerticalOptions="CenterAndExpand" BorderRadius="0"/>

c#

        ticketBtn.HeightRequest = 45* (double)App.ScreenWidth / 720.0;
        ticketBtn.WidthRequest = 150* (double)App.ScreenWidth / 720.0;

I make button in xamarin.form and set HeightRequest, WidthRequest.
but button size is not same to setting size.
upper image's two button is same size.
left is label with backgroundcolor, right is button.
but not same size.

and I want not rounded button. just square. but make button rounded auto.
I set BorderRadius=0, but not working.
like upper image.

plz help me


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>