Pages - DIPSAS/DIPS.Mobile.UI GitHub Wiki
We have added a ContentPage that derives from MAUI's implementation of ContentPage
. Currently its main purpose is to set color on the background, title and foreground of the page. Additionally, it also sets the HideSoftInputOnTapped
to default true.
Follow this link to enable our custom
HideSoftInputOnTapped
implementation on Android.
ContentSavePage
Additionally, we have made an extension to the ContentPage
, to make it easier to use SaveView. It replaces the content of the page with a SaveView, when something is to be saved.
Usage
In this example, the Label
will be replaced with a SaveView when the IsSaving
property is true
.
<dui:ContentSavePage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:dui="http://dips.com/mobile.ui"
x:Class="Components.ComponentsSamples.Saving.SaveViewSamples"
IsSavingCompleted="{Binding IsChecked}"
IsSaving="{Binding IsProgressing}"
SavingCompletedCommand="{Binding CompletedCommand}"
SavingCompletedText="Completed!"
SavingText="Loading...">
<dui:Label Text="Hello" />
</dui:ContentSavePage>