<Page x:Class="MultiLayout.PgLoading"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="290" d:DesignWidth="687" 
	Title="Page1">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Converters.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
        <Grid Background="{StaticResource Brushes.Card.Background}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="90*" />
            <ColumnDefinition Width="500*" />
            <ColumnDefinition Width="90*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="90*" />
            <RowDefinition Height="100*" />
            <RowDefinition Height="90*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="67*" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>
            <Viewbox HorizontalAlignment="Left" >
                <TextBlock Margin="5" Name="textBlock1" VerticalAlignment="Bottom" Text="{StaticResource str.PgLoading.Loading}" FontSize="24"/>
            </Viewbox>
            <Grid Grid.Row="1">
                <Rectangle Stroke="{StaticResource Brushes.Activity}"/>
                <Grid Margin="2" >
                    <Rectangle Fill="{StaticResource Brushes.Static}" x:Name="rectangle_bg_epc"/>
                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource Brushes.Activity}" >
                        <Rectangle.Width>
                            <MultiBinding Converter="{StaticResource ratioconv}" Mode="OneWay">
                                <Binding Path="Progress" />
                                <Binding Path="MaxValue" />
                                <Binding Path="ActualWidth" ElementName="rectangle_bg_epc"/>
                            </MultiBinding>
                        </Rectangle.Width>
                    </Rectangle>
                    <TextBlock FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" Margin="4">
                        <Run Text="{Binding Progress}"/>
                        <Run Text="/100"/>
                    </TextBlock>

                </Grid>

            </Grid>
        </Grid>

    </Grid>
</Page>
