feat: rename to PinCode, add styles for size.
This commit is contained in:
@@ -67,7 +67,7 @@ public class MainViewViewModel : ViewModelBase
|
||||
MenuKeys.MenuKeyThemeToggler => new ThemeTogglerDemoViewModel(),
|
||||
MenuKeys.MenuKeyToolBar => new ToolBarDemoViewModel(),
|
||||
MenuKeys.MenuKeyTimeBox => new TimeBoxDemoViewModel(),
|
||||
MenuKeys.MenuKeyVerificationCode => new VerificationCodeDemoViewModel(),
|
||||
MenuKeys.MenuKeyPinCode => new PinCodeDemoViewModel(),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(s), s, null)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ public class MenuViewModel: ViewModelBase
|
||||
new() { MenuHeader = "Numeric UpDown", Key = MenuKeys.MenuKeyNumericUpDown },
|
||||
new() { MenuHeader = "NumPad", Key = MenuKeys.MenuKeyNumPad },
|
||||
new() { MenuHeader = "Pagination", Key = MenuKeys.MenuKeyPagination },
|
||||
new() { MenuHeader = "PinCode", Key = MenuKeys.MenuKeyPinCode},
|
||||
new() { MenuHeader = "RangeSlider", Key = MenuKeys.MenuKeyRangeSlider },
|
||||
new() { MenuHeader = "Rating", Key = MenuKeys.MenuKeyRating, Status = "New"},
|
||||
new() { MenuHeader = "Scroll To", Key = MenuKeys.MenuKeyScrollToButton },
|
||||
@@ -53,7 +54,6 @@ public class MenuViewModel: ViewModelBase
|
||||
new() { MenuHeader = "TwoTonePathIcon", Key = MenuKeys.MenuKeyTwoTonePathIcon},
|
||||
new() { MenuHeader = "ToolBar", Key = MenuKeys.MenuKeyToolBar },
|
||||
new() { MenuHeader = "Time Box", Key = MenuKeys.MenuKeyTimeBox },
|
||||
new() { MenuHeader = "Verification Code", Key = MenuKeys.MenuKeyVerificationCode},
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public static class MenuKeys
|
||||
public const string MenuKeyThemeToggler = "ThemeToggler";
|
||||
public const string MenuKeyTreeComboBox = "TreeComboBox";
|
||||
public const string MenuKeyToolBar = "ToolBar";
|
||||
public const string MenuKeyVerificationCode = "VerificationCode";
|
||||
public const string MenuKeyPinCode = "PinCode";
|
||||
public const string MenuKeyTimeBox = "TimeBox";
|
||||
|
||||
}
|
||||
@@ -8,12 +8,12 @@ using Ursa.Controls;
|
||||
|
||||
namespace Ursa.Demo.ViewModels;
|
||||
|
||||
public partial class VerificationCodeDemoViewModel: ObservableObject
|
||||
public partial class PinCodeDemoViewModel: ObservableObject
|
||||
{
|
||||
public ICommand CompleteCommand { get; set; }
|
||||
[ObservableProperty] private List<Exception>? _error;
|
||||
|
||||
public VerificationCodeDemoViewModel()
|
||||
public PinCodeDemoViewModel()
|
||||
{
|
||||
CompleteCommand = new AsyncRelayCommand<IList<string>>(OnComplete);
|
||||
Error = [new Exception("Invalid verification code")];
|
||||
Reference in New Issue
Block a user