diff options
author | sr55 <[email protected]> | 2012-06-08 02:13:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-08 02:13:59 +0000 |
commit | a03739f0457ad9211744e540f33ab8a3c05598b9 (patch) | |
tree | 2f0dda9a6f9e9c48b2bb58d9cc6462c77bd55715 /win/CS/HandBrakeWPF/Views/MainView.xaml | |
parent | 368023e13a633e9dc94f27696c84f3ce3ca24ed3 (diff) |
WinGui: Added a Shell View which can host various windows. By default this will host the Main window. Changed the Options window to be a usercontrol so it can be hosted in this shell view, allowing for a chrome-esk style options within the main window without the need for a dialog window. The options window will need some design changes. (Coming soon)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4721 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/MainView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 938e31719..29565cf1c 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -1,23 +1,16 @@ -<Window x:Class="HandBrakeWPF.Views.MainView"
+<UserControl x:Class="HandBrakeWPF.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:HandBrakeWPF.Controls"
xmlns:Converters="clr-namespace:HandBrakeWPF.Converters"
- xmlns:Data="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
- Title="{Data:Binding Path=WindowTitle}"
- Width="1015"
- Height="652"
- MinWidth="1015"
- MinHeight="652"
AllowDrop="True"
Background="#FFF0F0F0"
FontSize="11"
Micro:Message.Attach="[Event Loaded] = [Action Load]"
SnapsToDevicePixels="True"
UseLayoutRounding="True"
- WindowStartupLocation="CenterScreen"
>
<i:Interaction.Triggers>
@@ -34,7 +27,7 @@ </i:EventTrigger>
</i:Interaction.Triggers>
- <Window.Resources>
+ <UserControl.Resources>
<Style TargetType="Button">
<Setter Property="Foreground" Value="DarkOrange" />
@@ -81,7 +74,7 @@ </Style>
<Converters:BooleanToVisibilityConverter x:Key="boolToVisConverter" />
- </Window.Resources>
+ </UserControl.Resources>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid.RowDefinitions>
@@ -628,4 +621,4 @@ </StatusBar>
</Grid>
-</Window>
+</UserControl>
|