1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
<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/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.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="加载中" 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>