74 lines
3.2 KiB
XML
74 lines
3.2 KiB
XML
<base:BaseView x:Class="DTS.StatusAndProgressBar.StatusAndProgressBarView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d" d:DesignWidth="800">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<Grid HorizontalAlignment="Stretch" >
|
|
<Grid.Background>
|
|
<SolidColorBrush Color="{Binding AggregateStatusColor, FallbackValue=Yellow}" />
|
|
</Grid.Background>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle
|
|
Fill="{DynamicResource Brush_StatusRibbonErrorBackgroundDark}"
|
|
Grid.Row="0" Grid.RowSpan="2"
|
|
Visibility="{Binding AlertVisibility, FallbackValue=Hidden}"
|
|
/>
|
|
<Grid
|
|
Background="{DynamicResource Brush_StatusRibbonErrorBackgroundLight}"
|
|
Grid.Row="0" Grid.RowSpan="2"
|
|
Visibility="{Binding AlertVisibility, FallbackValue=Hidden}">
|
|
<Grid.Style>
|
|
<Style TargetType="{x:Type Grid}">
|
|
<Style.Resources>
|
|
<Storyboard x:Key="flashAnimation" >
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.2" To="1" AutoReverse="True" Duration="0:0:0.3" RepeatBehavior="Forever" />
|
|
</Storyboard>
|
|
</Style.Resources>
|
|
<Style.Triggers>
|
|
<EventTrigger RoutedEvent="Window.Loaded">
|
|
<BeginStoryboard Name="flash" Storyboard="{StaticResource flashAnimation}" />
|
|
</EventTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Grid.Style>
|
|
</Grid>
|
|
|
|
|
|
<ProgressBar
|
|
Margin="0"
|
|
Grid.Row="0"
|
|
Height="3"
|
|
Background="White"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalContentAlignment="Stretch"
|
|
Visibility="{Binding ProgressBarVisibility}"
|
|
Value="{Binding ProgressBarValue,FallbackValue=55}"
|
|
/>
|
|
<TextBlock
|
|
FontFamily="Segoe UI"
|
|
FontSize="12"
|
|
Height="25"
|
|
Grid.Row="0"
|
|
Foreground="{Binding TextColor}"
|
|
Text="{Binding AggregateStatusText, FallbackValue=Connecting}"
|
|
HorizontalAlignment="Center"
|
|
Margin="0"
|
|
Padding="5,0"
|
|
x:Name="lblAggregateStatusText"
|
|
/>
|
|
</Grid>
|
|
</base:BaseView>
|
|
|