Win10 UWP Fillet button

Source: Internet
Author: User
Tags creative commons attribution

This article is about how to do the fillet button, we are in the UWP original buttons are rectangular, rounded radius No, so this article in a simple way to do the fillet button.

Our buttons need rounded corners, and no, actually do a very simple, turn the original button into a transparent background, and then use a rectangular fillet, this is the rounded button.

button background color Transparent, then we can use Background="{x:Null}" this time we do not have a background, you can use the rectangle round the button, and then write the display we need, of course, the above picture is what we do

                    <button.content>                        <Grid>                            <Viewbox>                                <Grid>                                    <Rectangle Fill= "Gray" radiusx= " radiusy" ="20" >                                    </Rectangle>                                    <StackPanel Orientation="Horizontal">                                        <!--<textblock text= "Sync"/>-->                                    </StackPanel>                                </Grid>                            </Viewbox>                        </Grid>                    </button.content>

This is the button general situation, there is the mouse movement on the button, the button is clicked these need to change.


This work is licensed under the Creative Commons Attribution-NonCommercial use-Share 4.0 International license agreement in the same way. Welcome to reprint, use, republish, but be sure to keep the article Attribution Lindesi (including Link: http://blog.csdn.net/lindexi_gd), not for commercial purposes, based on the modified works of this article must be issued with the same license. If you have any questions, please contact me.

Win10 UWP Fillet button

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.