summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-11-22 22:25:59 +0000
committersr55 <[email protected]>2013-11-22 22:25:59 +0000
commit6d1a0aaf440872cde4661d9ae50816a97331d55f (patch)
tree531f5be5317cc6a7cddcf60069ea989033c4d822 /win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml
parentacc52477100589c854cd3410a09949dd86fac754 (diff)
WinGui: Some additional work on Static Previews. Added slider to select the preview and set Max size on the image to prevent upscaling. Note, this feature is still not enabled in the UI.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5902 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml14
1 files changed, 12 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml
index 133ce551e..080d10ea8 100644
--- a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml
+++ b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml
@@ -3,8 +3,18 @@
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"
- mc:Ignorable="d">
+ mc:Ignorable="d" SizeToContent="WidthAndHeight"
+ TextOptions.TextFormattingMode="Display"
+ Title="Still Preview">
<Grid>
- <Image Source="{Binding PreviewImage}" />
+
+ <Image Source="{Binding PreviewImage}" MaxWidth="{Binding Width}" MaxHeight="{Binding Height}" />
+ <Slider Maximum="{Binding TotalPreviews}" Minimum="0"
+ Value="{Binding SelectedPreviewImage}"
+ VerticalAlignment="Bottom"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,20" Width="150"
+ Background="Transparent"
+ />
</Grid>
</Window>