PgLoading.xaml 2.84 KB
Newer Older
1
<Page x:Class="MultiLayout.PgLoading"
潘栩锋's avatar
潘栩锋 committed
2 3 4 5 6 7 8 9 10 11 12 13
      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"/>
14
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
潘栩锋's avatar
潘栩锋 committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
            </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" >
潘栩锋's avatar
潘栩锋 committed
35
                <TextBlock Margin="5" Name="textBlock1" VerticalAlignment="Bottom" Text="加载中" FontSize="24"/>
潘栩锋's avatar
潘栩锋 committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
            </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>