diff options
author | sr55 <[email protected]> | 2013-08-21 16:07:48 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-08-21 16:07:48 +0000 |
commit | edc9bf98907f9f794443facc7ce9072ee27af08c (patch) | |
tree | c2e44b43d14e8f70b87e826afa535b537f65beaf /win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml | |
parent | 58a7211154567065ce0a2845c573177334b6b8e2 (diff) |
WinGui: Initial work around around a when done countdown.
When a queue finishes it will now popup a window giving the user 60 seconds to cancel the when done operation.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5728 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml b/win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml new file mode 100644 index 000000000..121f43595 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml @@ -0,0 +1,39 @@ +<Window x:Class="HandBrakeWPF.Views.CountdownAlertView"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:cal="http://www.caliburnproject.org"
+ Title="When Done Action" MinHeight="130" MinWidth="400" WindowStartupLocation="CenterScreen" WindowStyle="None"
+ ShowActivated="True" ShowInTaskbar="True" SizeToContent="WidthAndHeight">
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="Auto" />
+ </Grid.RowDefinitions>
+ <StackPanel Grid.Row="0"
+ Height="30"
+ Margin="0,0,0,10"
+ Background="White"
+ Orientation="Horizontal">
+ <Image Width="24"
+ Height="24"
+ Margin="10,0,5,0"
+ VerticalAlignment="Center"
+ Source="../Views/Images/Advanced.png" />
+ <StackPanel VerticalAlignment="Center" Orientation="Vertical">
+ <TextBlock FontWeight="Bold" Text="When Done Action" />
+ </StackPanel>
+ </StackPanel>
+
+ <TextBlock Text="{Binding NoticeMessage}" Grid.Row="1" Margin="40,0,10,0"/>
+
+ <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,10,10,5" HorizontalAlignment="Right">
+ <Button Content="Proceed" HorizontalAlignment="Right"
+ cal:Message.Attach="[Event Click] = [Action Proceed]" Padding="8,2" Margin="0,10,10,5"/>
+
+ <Button Content="Cancel Action" HorizontalAlignment="Right" Margin="0,10,10,5"
+ cal:Message.Attach="[Event Click] = [Action Cancel]" Padding="8,2" IsDefault="True" />
+ </StackPanel>
+
+ </Grid>
+</Window>
|