-
Notifications
You must be signed in to change notification settings - Fork 3
Pages
Vetle444 edited this page Aug 14, 2023
·
4 revisions
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, 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.
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>