init
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<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>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using DTS.Common.Interface;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.StatusAndProgressBar
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for StatusAndProgressBarView.xaml
|
||||
/// </summary>
|
||||
public partial class StatusAndProgressBarView : IStatusAndProgressBarView
|
||||
{
|
||||
public StatusAndProgressBarView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<base:BaseView x:Class="DTS.StatusAndProgressBar.StatusAndProgressFooterView"
|
||||
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.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="3*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ProgressBar
|
||||
Margin="0"
|
||||
Grid.Column="0"
|
||||
Height="3"
|
||||
Background="White"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
Value="{Binding ProgressBarValue,FallbackValue=55}"
|
||||
Visibility="{Binding ProgressBarVisiblity}"
|
||||
/>
|
||||
<TextBlock
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="12"
|
||||
Height="25"
|
||||
Grid.Column="1"
|
||||
Foreground="White"
|
||||
Text="{Binding ProgressText, FallbackValue=Connecting}"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0"
|
||||
Padding="5,0"
|
||||
/>
|
||||
</Grid>
|
||||
</base:BaseView>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using DTS.Common.Interface;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.StatusAndProgressBar
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for StatusAndProgressFooterView.xaml
|
||||
/// </summary>
|
||||
public partial class StatusAndProgressFooterView : IStatusAndProgressFooterView
|
||||
{
|
||||
public StatusAndProgressFooterView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user