blob: d860bf6dee9decf38cb6d00e08bee66a61438364 (
plain)
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
|
<UserControl x:Class="Tango.FSE.UI.Views.LoadingView"
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"
xmlns:global="clr-namespace:Tango.FSE.UI"
xmlns:vm="clr-namespace:Tango.FSE.UI.ViewModels"
xmlns:local="clr-namespace:Tango.FSE.UI.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:LoadingViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.LoadingViewVM}" Background="{StaticResource FSE_PrimaryBackgroundBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<Image Source="/Images/Abstracts/abstract2.png" RenderTransformOrigin="0.5,0.5" Height="350" HorizontalAlignment="Left" Stretch="UniformToFill" Width="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=ActualWidth,Converter={StaticResource MathOperatorConverter},ConverterParameter='+100'}" RenderOptions.BitmapScalingMode="Fant" VerticalAlignment="Bottom">
<Image.Style>
<Style TargetType="Image">
<Setter Property="Margin" Value="0 0 0 0"></Setter>
<Setter Property="Opacity" Value="0.8"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsLoading}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ThicknessAnimation Storyboard.TargetProperty="Margin" To="-100 0 0 0" Duration="00:00:05" />
<DoubleAnimation Storyboard.TargetProperty="Opacity" To="0.2" Duration="00:00:05" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<Image Source="{StaticResource FSE_Twine_Logo}" HorizontalAlignment="Left" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="Fant" Stretch="Uniform" Margin="20" Width="300"></Image>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 -100 0 0">
<ProgressBar Width="200" Height="200" HorizontalAlignment="Center" VerticalAlignment="Center" IsIndeterminate="{Binding IsLoading}" Style="{StaticResource MaterialDesignCircularProgressBar}" Value="0" />
<TextBlock FontSize="20" Margin="0 30 0 0">loading, please wait...</TextBlock>
</StackPanel>
</Grid>
</UserControl>
|