<Page x:Class="ThickTcpUiInWindow.Page_Loading"
      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" 
      Background="#bcbcbc"
	Title="Page1">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/MaterialDesignIcons.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
        <Grid>
        <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="{DynamicResource strLoading}" FontSize="24"/>
            </Viewbox>
            <Grid Grid.Row="1">
                <Rectangle Stroke="{StaticResource Color_theme_activity}"/>
                <Grid Margin="2" >
                    <Rectangle Fill="{StaticResource Color_theme_static}" x:Name="rectangle_bg_epc"/>
                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource Color_theme_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>
