45 lines
2.6 KiB
XML
45 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<controls:BaseContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="gehGassiApp.Views.ShowTextPageView"
|
|
xmlns:res="clr-namespace:gehGassiApp.Resources"
|
|
xmlns:controls="clr-namespace:gehGassiApp.Controls"
|
|
ControlTemplate="{StaticResource MenuPageTemplate}">
|
|
|
|
<controls:BaseContentPage.TitleView>
|
|
<controls:ShellTitleViewNoLogoControl ViewModel="{Binding .}" Initials="{Binding CurrentAppUser.Initials}" Photo="{Binding CurrentAppUser.Photo}"/>
|
|
</controls:BaseContentPage.TitleView>
|
|
|
|
<ContentPage.Content>
|
|
<Grid>
|
|
<WebView x:Name="webView" Source="{Binding Url}" HorizontalOptions="Fill" VerticalOptions="Fill" Margin="5" Navigating="webView_Navigating" Navigated="webView_Navigated">
|
|
<WebView.IsVisible>
|
|
<MultiBinding Converter="{StaticResource AllTrueMultiConverter}">
|
|
<!--<Binding Path="IsBusy" Converter="{StaticResource InvertedBoolConverter}"></Binding>-->
|
|
<Binding Path="HasError" Converter="{StaticResource InvertedBoolConverter}"></Binding>
|
|
</MultiBinding>
|
|
</WebView.IsVisible>
|
|
</WebView>
|
|
|
|
<Border BackgroundColor="{StaticResource Primary_White}" StrokeThickness="0" Padding="20,100,20,0" VerticalOptions="Fill" HorizontalOptions="Fill">
|
|
<Grid RowDefinitions="*,*,*" RowSpacing="50" Padding="10" VerticalOptions="StartAndExpand" HorizontalOptions="Fill">
|
|
|
|
<Image Grid.Row="0" Source="bowl" ></Image>
|
|
|
|
<Label Grid.Row="1" Text="{x:Static res:Text.TextPage_ServerError}" Style="{StaticResource H4_Blue}" HorizontalOptions="CenterAndExpand" HorizontalTextAlignment="Center"></Label>
|
|
|
|
<Button Grid.Row="2" Text="{x:Static res:Text.Button_Reload}" Command="{Binding ReloadPageCommand}"></Button>
|
|
</Grid>
|
|
<Border.IsVisible>
|
|
<MultiBinding Converter="{StaticResource AllTrueMultiConverter}">
|
|
<Binding Path="IsBusy" Converter="{StaticResource InvertedBoolConverter}"></Binding>
|
|
<Binding Path="NotFound"></Binding>
|
|
</MultiBinding>
|
|
</Border.IsVisible>
|
|
</Border>
|
|
|
|
<ActivityIndicator IsRunning="True" IsVisible="{Binding IsBusy}" HorizontalOptions="Center" VerticalOptions="Center" Scale="1"/>
|
|
</Grid>
|
|
</ContentPage.Content>
|
|
|
|
</controls:BaseContentPage> |