PM-3349 PM-3350 Minor change to HomePage to set fixed Image height otherwise it takes more space than it did in the old Xamarin Forms app.

Added HIdeSoftInputOnTapped on several pages (the ones with Entry controls) to allow hiding the keyboard when tapping "outside" of it. (just like we did in Xamarin Forms app)
This commit is contained in:
Dinis Vieira 2023-10-28 19:02:54 +01:00
parent 2688209752
commit 484b5a5160
No known key found for this signature in database
GPG key ID: 9389160FF6C295F3
19 changed files with 20 additions and 0 deletions

View file

@ -5,6 +5,7 @@
x:Class="Bit.App.Pages.EnvironmentPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
HideSoftInputOnTapped="True"
x:DataType="pages:EnvironmentPageViewModel"
Title="{Binding PageTitle}">

View file

@ -6,6 +6,7 @@
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:HintPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:HomeViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>
@ -34,6 +35,7 @@
<Image
x:Name="_logo"
Source="logo.png"
HeightRequest="60"
VerticalOptions="Center" />
<Label Text="{u:I18n LoginOrCreateNewAccount}"
StyleClass="text-lg"

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:LockPageViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">

View file

@ -9,6 +9,7 @@
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:LoginPageViewModel"
x:Name="_page"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}"
AutomationId="PageTitleLabel">

View file

@ -6,6 +6,7 @@
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:LoginSsoPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:RegisterPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:SetPasswordPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:TwoFactorPageViewModel"
HideSoftInputOnTapped="True"
Unloaded="TwoFactorPage_OnUnloaded"
Title="{Binding PageTitle}">

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:UpdateTempPasswordPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:u="clr-namespace:Bit.App.Utilities"
xmlns:controls="clr-namespace:Bit.App.Controls"
x:DataType="pages:VerificationCodeViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>
<pages:VerificationCodeViewModel />

View file

@ -10,6 +10,7 @@
xmlns:effects="clr-namespace:Bit.App.Effects"
xmlns:core="clr-namespace:Bit.Core"
xmlns:enums="clr-namespace:Bit.Core.Enums"
HideSoftInputOnTapped="True"
x:DataType="pages:GeneratorPageViewModel"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -11,6 +11,7 @@
xmlns:effects="clr-namespace:Bit.App.Effects"
xmlns:core="clr-namespace:Bit.Core"
x:DataType="pages:SendAddEditPageViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -9,6 +9,7 @@
xmlns:behaviors="clr-namespace:Bit.App.Behaviors"
xmlns:effects="clr-namespace:Bit.App.Effects"
x:DataType="pages:SendAddEditPageViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -7,6 +7,7 @@
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:ExportVaultPageViewModel"
HideSoftInputOnTapped="True"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -6,6 +6,7 @@
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:FolderAddEditPageViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -11,6 +11,7 @@
xmlns:effects="clr-namespace:Bit.App.Effects"
xmlns:dts="clr-namespace:Bit.App.Lists.DataTemplateSelectors"
xmlns:il="clr-namespace:Bit.App.Lists.ItemLayouts.CustomFields"
HideSoftInputOnTapped="True"
xmlns:core="clr-namespace:Bit.Core"
x:DataType="pages:CipherAddEditPageViewModel"
x:Name="_page"

View file

@ -12,6 +12,7 @@
xmlns:il="clr-namespace:Bit.App.Lists.ItemLayouts.CustomFields"
xmlns:core="clr-namespace:Bit.Core"
x:DataType="pages:CipherDetailsPageViewModel"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>

View file

@ -9,6 +9,7 @@
xmlns:skia="clr-namespace:SkiaSharp.Views.Maui.Controls;assembly=SkiaSharp.Views.Maui.Controls"
xmlns:core="clr-namespace:Bit.Core"
xmlns:maui="clr-namespace:Camera.MAUI;assembly=Camera.MAUI"
HideSoftInputOnTapped="True"
x:Name="_page"
Title="{Binding ScanQrPageTitle}">