<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RG3.MauiAppHostCK.UserProtocolPage"
xmlns:local="clr-namespace:RG3.MauiAppHostCK.Converters"
Shell.NavBarIsVisible="False" BackgroundImageSource="banner_pdetail.png" >
<ContentPage.Resources>
<StyleSheet Source="/Resources/Styles/HomeStyle.css" ></StyleSheet>
<local:PercentageToPixelConverter x:Key="percentageToPixelConverter" ></local:PercentageToPixelConverter>
</ContentPage.Resources>
<VerticalStackLayout VerticalOptions="End" WidthRequest="375" Spacing="10" HorizontalOptions="Center" Padding="10,0,10,10" BackgroundColor="#ffffff">
<BoxView
x:Name="bvHeaderRadius"
Color="#ffffff"
Margin="0,-20,0,0"
CornerRadius="30,30,0,0"
WidthRequest="375"
HeightRequest="20"
VerticalOptions="End"
HorizontalOptions="Center" ></BoxView>
<ActivityIndicator IsRunning="true" Color="#BD3124" IsVisible="{Binding IsDataLoading}"></ActivityIndicator>
<StackLayout >
<Label Text="用户协议"
FontSize="23"
FontAttributes="Bold"
HorizontalOptions="Center"
VerticalOptions="End">
</Label>
</StackLayout>
<!--HeightRequest="{Binding Source={RelativeSource Self}, Path=Parent.Height, Converter={StaticResource percentageToPixelConverter}, ConverterParameter='0.9'}"-->
<ScrollView HeightRequest="650">
<WebView Margin="0,5,0,0">
<WebView.Source>
<HtmlWebViewSource Html="{Binding Description}"></HtmlWebViewSource>
</WebView.Source>
</WebView>
</ScrollView>
</VerticalStackLayout>
</ContentPage>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RG3.MauiAppHostCK.MainPage" Shell.NavBarIsVisible="False" BackgroundImageSource="banner_pdetail.png">
<!--BackgroundImageSource="banner_pdetail.png"-->
<!--#region 重新设置 Sheel标题-->
<!--<Shell.TitleView >
<Grid >
<Image
Source="dotnet_bot.png"
HorizontalOptions="Start"
VerticalOptions="Center" HeightRequest="32"/>
<Label
Text="目录"
Padding="32,0"
TextColor="White"
HorizontalOptions="Start"
VerticalOptions="Center"
FontSize="Title" />
</Grid>
</Shell.TitleView>-->
<!--#endregion 重新设置 Sheel标题-->
<!--<Shell.BackButtonBehavior>
<BackButtonBehavior
Command="{Binding BackRelayCommand}"/>
</Shell.BackButtonBehavior>-->
<!--<Shell.BackButtonBehavior>
<BackButtonBehavior
Command="{Binding BackCommand}"
CommandParameter="命令参数"
IconOverride="back.png"
IsEnabled="True"
IsVisible="True"
TextOverride="后退" />
</Shell.BackButtonBehavior>-->
<!--<ContentPage.Resources>
<StyleSheet Source="/Resources/Styles/HomeStyle.css" />
</ContentPage.Resources>-->
<!--<Grid>-->
<!--<Image Source="banner_pdetail.png" HorizontalOptions="Center" Aspect="AspectFill"/>-->
<!--<AbsoluteLayout Margin="50,300,0,0" >
<ImageButton
BackgroundColor="#BD3124"
WidthRequest="56"
HeightRequest="56"
CornerRadius="28"
Padding="16"
Margin="16"
Source="jurassic_prev_arrow.png"
Command="{Binding PrevWordRelayCommand}"
IsVisible="{Binding PrevVisible}">
</ImageButton>
</AbsoluteLayout>-->
<!--<AbsoluteLayout Margin="{OnIdiom Phone='0,10,0,0', Tablet='0,300,30,0', Desktop='0,300,50,0'}" HorizontalOptions="End">
<ImageButton
BackgroundColor="#BD3124"
WidthRequest="56"
HeightRequest="56"
CornerRadius="28"
Padding="16"
Margin="16"
Source="jurassic_next_arrow.png"
Command="{Binding NextWordRelayCommand}"
IsVisible="{Binding NextVisible}">
</ImageButton>
</AbsoluteLayout>-->
<VerticalStackLayout VerticalOptions="End" WidthRequest="375" Spacing="10" HorizontalOptions="Center" Padding="30,0,30,20" BackgroundColor="#ffffff">
<BoxView
x:Name="bvHeaderRadius"
Color="#ffffff"
Margin="0,-10,0,0"
CornerRadius="20,20,0,0"
WidthRequest="375"
HeightRequest="10"
VerticalOptions="End"
HorizontalOptions="Center" />
<ActivityIndicator IsRunning="true" Color="#BD3124" IsVisible="{Binding IsDataLoading}"/>
<HorizontalStackLayout VerticalOptions="Center" HorizontalOptions="Start">
<Label Text="{Binding ScriptureNameSn}"
FontSize="23"
FontAttributes="Bold"
Margin="-15,0,0,0"
WidthRequest="200"
HorizontalOptions="Start"
VerticalOptions="Center">
</Label>
<HorizontalStackLayout VerticalOptions="Center" HorizontalOptions="End" Margin="{OnIdiom Phone='0,-9,0,0', Tablet='0,-6,0,0', Desktop='0,-6,0,0'}" >
<!--<Image Margin="0,0,10,0"
Source="icon_refresh.png"
Aspect="AspectFill"
WidthRequest="21" >
<Image.GestureRecognizers>
<TapGestureRecognizer
Buttons="Primary,Secondary"
CommandParameter="refresh"
></TapGestureRecognizer>
</Image.GestureRecognizers>
</Image>-->
<Label
FontSize="20"
FontAttributes="Bold"
TextColor="#BD3124"
HeightRequest="22"
HorizontalTextAlignment="End"
VerticalTextAlignment="Center"
HorizontalOptions="End"
Text="{Binding CurWordNo}" />
<Label
FontSize="20"
FontAttributes="Bold"
HeightRequest="22"
HorizontalTextAlignment="End"
VerticalTextAlignment="Center"
HorizontalOptions="End"
Text="/" />
<Label
FontSize="20"
FontAttributes="Bold"
HeightRequest="22"
HorizontalTextAlignment="End"
VerticalTextAlignment="Center"
HorizontalOptions="End"
Text="{Binding AllWordCount}" />
</HorizontalStackLayout>
</HorizontalStackLayout>
<Image Source="banner_fx.png" HorizontalOptions="Center" WidthRequest="355" Aspect="AspectFill"/>
<ImageButton
Margin="{OnIdiom Phone='0,-300,-280,210', Tablet='0,-300,-280,220', Desktop='0,-300,-280,230'}"
WidthRequest="{OnIdiom Phone='88', Tablet='56', Desktop='56'}"
HeightRequest="{OnIdiom Phone='88', Tablet='56', Desktop='56'}"
BackgroundColor="#BD3124"
HorizontalOptions="Center"
CornerRadius="28"
Padding="16"
Source="jurassic_next_arrow.png"
Command="{Binding NextWordRelayCommand}"
IsVisible="{Binding NextVisible}">
</ImageButton>
<!--IsVisible="{Binding IsBjViewVisible}"-->
<CollectionView ItemsSource="{Binding Vos}" FlowDirection="LeftToRight" WidthRequest="370" HeightRequest="93" >
<CollectionView.ItemsLayout>
<GridItemsLayout x:Name="cvGridItemsLayout" Orientation="Vertical"
Span="6"/>
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<!--<Border
WidthRequest="70"
HeightRequest="84"
StrokeShape="RoundRectangle 50,50,50,50"
HorizontalOptions="End">
</Border>-->
<!--<Label
TextColor="#BD3124"
FontSize="60"
FontAttributes="Bold"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
HorizontalOptions="EndAndExpand"
Text="{Binding Name}" >
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding WordNoRelayCommand}" CommandParameter="{Binding Value}"
></TapGestureRecognizer>
</Label.GestureRecognizers>
</Label>-->
<!--TextColor="{Binding Color}"-->
<!--TextColor="#FFBD3124"
TextColor="#101010"-->
<Label
TextColor="{Binding Color}"
FontSize="60"
FontAttributes="None"
FontFamily="PingFangSC-regular"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
HorizontalOptions="EndAndExpand"
Text="{Binding Name}" >
<Label.Shadow>
<Shadow Brush="#010000"
Offset="4,4"
Radius="4"
Opacity="0.6" />
</Label.Shadow>
</Label>
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView.EmptyView>
<VerticalStackLayout>
<Label
TextColor="#BD3124"
FontSize="60"
FontAttributes="Bold"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
HorizontalOptions="Center"
Text="无数据" />
</VerticalStackLayout>
</CollectionView.EmptyView>
</CollectionView>
<!--<VerticalStackLayout IsVisible="{Binding IsBcViewVisible}">
<Label
TextColor="#BD3124"
FontSize="60"
FontAttributes="Bold"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
HorizontalOptions="Center"
Text="{Binding BcWordText}" />
</VerticalStackLayout>-->
<StackLayout VerticalOptions="End" HeightRequest="50" >
<Button
Command="{Binding StartRelayCommand}"
IsEnabled="{Binding StartEnabled}"
CornerRadius="30"
BackgroundColor="#101010"
TextColor="#FFFFFF"
FontSize="14"
WidthRequest="315"
HorizontalOptions="End"
HeightRequest="55"
FontAttributes="Bold"
Text="{Binding StartText}" />
<Border Stroke="#ffffff"
WidthRequest="1"
HeightRequest="55"
Margin="64,-55,0,0"
HorizontalOptions="Start">
</Border>
</StackLayout>
</VerticalStackLayout>
</ContentPage>
文档更新时间: 2023-11-18 13:19 作者:admin