top button
Flag Notify
Site Registration

How to adjust the corner radius Windows phone button?

+1 vote
443 views

Explain problematically.

posted Dec 16, 2014 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Windows phone default having Ui like Metro type.There is no property to set corner radius for Windows phone buttons. But our requirement is to create a button with curve edges.so that we can do like this by overriding control template of button.

 <Button  HorizontalAlignment="Left" Margin="47,636,0,0" Name="SignUpButton" 
     VerticalAlignment="Top"   FontSize="18" Background="#6BA92A" Click="SignUpButton_Click">
    <Button.Template>
        <ControlTemplate>
            <Border BorderBrush="#6BA92A" Background="#6BA92A" CornerRadius="20,20,20,20" BorderThickness="2">
                <Button   Content="Sign up "
                          Background="{TemplateBinding Background}"
                          Height="65"
                          Width="348"
                          FontSize="{TemplateBinding FontSize}"
                          BorderBrush="#6BA92A">
                </Button>
            </Border>
        </ControlTemplate>
    </Button.Template>
</Button> 
answer Dec 18, 2014 by Jdk
Similar Questions
+2 votes

I am developing windows phone application i had a doubt regarding wp and emulator during runtime in the display rightside corner sequence of number is displaying what is that use or how to hide ???

+2 votes

so as of now when a back (hardware) button is clicked it closes the app. How can I work around this so it goes to the previous webpage or goes back to the index or something on those lines?

...