Create Round Button with Border IN UWP Windows 10 C#

后端 未结 6 1285
盖世英雄少女心
盖世英雄少女心 2021-02-07 16:47

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

6条回答
  •  旧时难觅i
    2021-02-07 17:06

    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.

提交回复
热议问题