summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-20 02:07:56 +0000
committersr55 <[email protected]>2012-05-20 02:07:56 +0000
commita74a875a44e65737bf1b913d94c806498aac1efe (patch)
treef44711db67fcb8ada728df0d1f64355d0d89ea1d /win/CS/HandBrakeWPF/Controls/StatusPanel.xaml
parent332f03f3f68dca799a2e50ceb7e34578ac0bcd5f (diff)
WinGui: Status overlay when scanning. Not sure if this is going to stay, just experimenting with ideas.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4690 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/StatusPanel.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Controls/StatusPanel.xaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml
new file mode 100644
index 000000000..481c2eedb
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml
@@ -0,0 +1,28 @@
+<UserControl x:Class="HandBrakeWPF.Controls.StatusPanel"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:ctr="clr-namespace:HandBrakeWPF.Controls">
+
+ <UserControl.Resources>
+ <BooleanToVisibilityConverter x:Key="boolTovisibility" />
+ </UserControl.Resources>
+
+ <DockPanel Background="Black" Opacity="0.85"
+ Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},
+ Path=IsLoading, Mode=OneWay, Converter={StaticResource boolTovisibility}}">
+
+ <ctr:Loading DockPanel.Dock="Left" HorizontalAlignment="Left" VerticalAlignment="Top"
+ Height="45" Margin="18,10" />
+
+ <StackPanel VerticalAlignment="Top">
+ <TextBlock SnapsToDevicePixels="True" VerticalAlignment="Top" FontSize="16" Margin="0,11,0,0" HorizontalAlignment="Left"
+ FontWeight="Bold"
+ Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=Message}"
+ Foreground="LightBlue" />
+
+ <TextBlock SnapsToDevicePixels="True" VerticalAlignment="Top" FontSize="12" Margin="0,5" HorizontalAlignment="Left"
+ Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=SubMessage}"
+ Foreground="LightBlue" />
+ </StackPanel>
+ </DockPanel>
+</UserControl>