Create Round Button with Border IN UWP Windows 10 C#

后端 未结 6 1267
盖世英雄少女心
盖世英雄少女心 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条回答
  •  再見小時候
    2021-02-07 17:09

    With version 1809 and later (even if you're targeting an earlier version like me below) you can just do this for an example of a round button:

    
    

    and voila!

    Make sure to add this at the top of your XAML with the other xmlns stuff.

    xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"
    

提交回复
热议问题