Create Round Button with Border IN UWP Windows 10 C#

后端 未结 2 1482
[愿得一人]
[愿得一人] 2021-02-07 16:21

I am trying to create a round button, with a White Border and a Transparent Background (as the old AppBarButtons in Windows 8.1) in UWP Windows 10.

I have found several

2条回答
  •  無奈伤痛
    2021-02-07 16:59

    There are few ways to achieve this, one by using a style can look like this - remove BorderBrush from ContentPresenter and add an Ellipse with that brush. Sample in XAML:

    
        
    
    
    
        

    I've also made some changes in VisualStates so that it doesn't look weird once clicked/disabled.

提交回复
热议问题