Title="{Binding Title}"\r
Width="700"\r
Height="500"\r
- MinWidth="200"\r
- MinHeight="200"\r
+ MinWidth="350"\r
+ MinHeight="250"\r
Background="#FFF0F0F0"\r
WindowStartupLocation="CenterScreen"\r
TextOptions.TextFormattingMode="Display"\r
<RowDefinition Height="Auto" />\r
<RowDefinition Height="*" />\r
</Grid.RowDefinitions>\r
+\r
+\r
<ToolBar Name="mainToolBar"\r
HorizontalAlignment="Stretch"\r
VerticalAlignment="Stretch"\r
- SnapsToDevicePixels="True">\r
+ SnapsToDevicePixels="True" \r
+ AllowDrop="False" Focusable="False" >\r
+ <ToolBar.Resources>\r
+ <Style TargetType="{x:Type ToolBarPanel}">\r
+ <Setter Property="Orientation" Value="Vertical"/>\r
+ </Style>\r
\r
- <DockPanel Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ToolBarPanel}}}" Background="Transparent">\r
- <DockPanel.Resources>\r
- <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="{x:Type Button}" />\r
- <Style BasedOn="{StaticResource {x:Static ToolBar.MenuStyleKey}}" TargetType="{x:Type Menu}" />\r
- </DockPanel.Resources>\r
+ <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="{x:Type Button}" />\r
+ <Style BasedOn="{StaticResource {x:Static ToolBar.MenuStyleKey}}" TargetType="{x:Type Menu}" />\r
+ </ToolBar.Resources>\r
\r
- <Button Name="Start"\r
+ <DockPanel Background="Transparent" HorizontalAlignment="Stretch">\r
+\r
+ <Button Name="Start" DockPanel.Dock="Left"\r
cal:Message.Attach="[Event Click] = [Action StartEncode]"\r
Visibility="{Binding IsEncoding,\r
Converter={StaticResource boolToVisConverter},\r
</StackPanel>\r
</Button>\r
\r
- <Button Name="Pause"\r
+ <Button Name="Pause" DockPanel.Dock="Left"\r
cal:Message.Attach="[Event Click] = [Action PauseEncode]"\r
Visibility="{Binding IsEncoding,\r
Converter={StaticResource boolToVisConverter},\r
</StackPanel>\r
</Button>\r
\r
- <Menu HorizontalAlignment="Right" Background="Transparent">\r
+ <Menu HorizontalAlignment="Right" DockPanel.Dock="Right" Background="Transparent">\r
<MenuItem>\r
<MenuItem.Header>\r
<StackPanel Height="32" Orientation="Horizontal">\r
YourNamespace:MenuItemExtensions.GroupName="whenDone" />\r
</MenuItem>\r
</Menu>\r
+\r
</DockPanel>\r
</ToolBar>\r
\r