Skip to content
Vetle444 edited this page Aug 14, 2023 · 3 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.

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>
Clone this wiki locally