46 lines
2.2 KiB
XML
46 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<ui:AdaptedPage
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
|
|
xmlns:ui="clr-namespace:Gallery.Resources.UI"
|
|
x:Class="Gallery.Views.GalleryItemPage"
|
|
x:Name="galleryItemPage"
|
|
ios:Page.UseSafeArea="False"
|
|
Shell.TabBarIsVisible="False"
|
|
BindingContext="{x:Reference galleryItemPage}">
|
|
|
|
<ContentPage.ToolbarItems>
|
|
<ToolbarItem Command="{Binding ToolbarCommand}" CommandParameter="favorite"
|
|
Order="Primary" IconImageSource="{Binding FavoriteIcon}"/>
|
|
<ToolbarItem Command="{Binding ToolbarCommand}" CommandParameter="refresh"
|
|
Order="Primary" IconImageSource="{DynamicResource FontIconRefresh}"/>
|
|
<ToolbarItem Command="{Binding ToolbarCommand}" CommandParameter="share"
|
|
Order="Primary" IconImageSource="{DynamicResource FontIconShare}"/>
|
|
</ContentPage.ToolbarItems>
|
|
<ContentPage.Content>
|
|
<Grid Padding="{Binding TopMargin}">
|
|
<Image HorizontalOptions="Fill"
|
|
VerticalOptions="Fill"
|
|
Aspect="AspectFit"
|
|
Source="{Binding GalleryItem.PreviewImage}"/>
|
|
|
|
<Frame HasShadow="False" Margin="0" Padding="20" CornerRadius="8"
|
|
HorizontalOptions="Center" VerticalOptions="Center"
|
|
IsVisible="{Binding IsBusy}"
|
|
BackgroundColor="{DynamicResource MaskColor}">
|
|
<ActivityIndicator IsVisible="{Binding IsBusy}"
|
|
IsRunning="{Binding IsBusy}"
|
|
Color="{DynamicResource WindowColor}"/>
|
|
</Frame>
|
|
|
|
<ProgressBar x:Name="progress" IsVisible="{Binding ProgressVisible}"
|
|
VerticalOptions="Start">
|
|
<ProgressBar.Margin>
|
|
<OnPlatform x:TypeArguments="Thickness" Android="0, -6, 0, 0"/>
|
|
</ProgressBar.Margin>
|
|
</ProgressBar>
|
|
</Grid>
|
|
</ContentPage.Content>
|
|
</ui:AdaptedPage>
|