feat: rename to PinCode, add styles for size.
This commit is contained in:
18
demo/Ursa.Demo/Pages/PinCodeDemo.axaml.cs
Normal file
18
demo/Ursa.Demo/Pages/PinCodeDemo.axaml.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Avalonia.Controls;
|
||||
using Ursa.Controls;
|
||||
|
||||
namespace Ursa.Demo.Pages;
|
||||
|
||||
public partial class PinCodeDemo : UserControl
|
||||
{
|
||||
public PinCodeDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void VerificationCode_OnComplete(object? _, PinCodeCompleteEventArgs e)
|
||||
{
|
||||
var text = string.Join(string.Empty, e.Code);
|
||||
await MessageBox.ShowOverlayAsync(text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user