1using CommunityToolkit.Mvvm.Messaging;
2using Microsoft.Maui.Controls.PlatformConfiguration;
3using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
19 this.InitializeComponent();
20 this.ContentPageModel = ViewModel;
26 this.OldPasswordEntry.Focus();
33 await base.OnAppearingAsync();
34 WeakReferenceMessenger.Default.Register<
KeyboardSizeMessage>(
this, this.HandleKeyboardSizeMessage);
41 await base.OnDisappearingAsync();
46 await this.Dispatcher.DispatchAsync(() =>
49 if (DeviceInfo.Platform == DevicePlatform.iOS)
51 Thickness SafeInsets = this.On<iOS>().SafeAreaInsets();
52 Bottom = SafeInsets.Bottom;
53 Thickness Margin = new(0, 0, 0, Message.KeyboardSize - Bottom);
54 this.TheMainGrid.Margin = Margin;
Allows the user to change its password.
override async Task OnAppearingAsync()
ChangePasswordPage(ChangePasswordViewModel ViewModel)
Initializes a new instance of the ChangePasswordPage class.
override async Task OnDisappearingAsync()
View model for the ChangePasswordPage page.
class KeyboardSizeMessage(float KeyboardSize)
Keyboard size change message