SelectionMode="Extended">
<ListBox.ItemContainerStyle>
- <Style TargetType="ListBoxItem">
+ <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0,0,0,1" />
</Style>
SelectionMode="Extended">\r
\r
<ListBox.ItemContainerStyle>\r
- <Style TargetType="ListBoxItem">\r
+ <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="HorizontalContentAlignment" Value="Stretch" />\r
<Setter Property="Margin" Value="0,0,0,1" />\r
</Style>\r
<ToggleButton Name="advancedOptionsToggle" VerticalAlignment="Center" Grid.Column="8" Grid.Row="0" Grid.ColumnSpan="2" Margin="5,0,0,0"\r
Padding="3,0" Height="22" HorizontalAlignment="Left" >\r
<ToggleButton.Style>\r
- <Style TargetType="{x:Type ToggleButton}">\r
+ <Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">\r
<Setter Property="Content" Value="Show"/>\r
<Setter Property="FontWeight" Value="Bold" />\r
<Style.Triggers>\r
CanUserAddRows="False" CanUserDeleteRows="False" HeadersVisibility="Column"\r
HorizontalGridLinesBrush="#FFABADB3" VerticalGridLinesBrush="#FFABADB3">\r
<DataGrid.CellStyle>\r
- <Style TargetType="DataGridCell">\r
+ <Style TargetType="DataGridCell" BasedOn="{StaticResource {x:Type DataGridCell}}">\r
<Setter Property="MinHeight" Value="22" />\r
</Style>\r
</DataGrid.CellStyle>\r
<Converters:LongToIntConverter x:Key="longToIntConverter" />\r
<queue:InlineQueueConverter x:Key="InlineQueueConverter" />\r
\r
- <Style TargetType="Button">\r
+ <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">\r
<Setter Property="Padding" Value="8,2" />\r
<Setter Property="VerticalAlignment" Value="Center" />\r
<Setter Property="MinHeight" Value="22" />\r
\r
<Converters:BooleanToVisibilityConverter x:Key="boolToVisConverter" />\r
\r
- <Style x:Key="textBlockOrangeStyle" TargetType="TextBlock">\r
+ <Style x:Key="textBlockOrangeStyle" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Setter Property="FontWeight" Value="Bold" />\r
<Setter Property="Padding" Value="5,5" />\r
</Style>\r
\r
- <Style TargetType="ToolTip">\r
+ <Style TargetType="ToolTip" BasedOn="{StaticResource {x:Type ToolTip}}">\r
<Style.Resources>\r
- <Style TargetType="ContentPresenter">\r
+ <Style TargetType="ContentPresenter" BasedOn="{StaticResource {x:Type ContentPresenter}}">\r
<Style.Resources>\r
- <Style TargetType="TextBlock">\r
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Setter Property="TextWrapping" Value="Wrap" />\r
</Style>\r
</Style.Resources>\r
HorizontalAlignment="Stretch"\r
VerticalAlignment="Top">\r
<Menu.Resources>\r
- <Style TargetType="MenuItem">\r
+ <Style TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}">\r
<Setter Property="Height" Value="23" />\r
</Style>\r
</Menu.Resources>\r
SelectedItem="{Binding Path=SelectedTitle}" >\r
\r
<ComboBox.Style>\r
- <Style TargetType="{x:Type ComboBox}">\r
+ <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">\r
<Style.Triggers>\r
<DataTrigger Binding="{Binding Path=IsDropDownOpen, ElementName=Titles}" Value="True">\r
<Setter Property="DisplayMemberPath" Value="ItemDisplayText" />\r
<HierarchicalDataTemplate DataType="{x:Type loc:Preset}">\r
<StackPanel Orientation="Horizontal" >\r
<StackPanel.Resources>\r
- <Style TargetType="TextBlock">\r
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Style.Triggers>\r
<DataTrigger Binding="{Binding IsDefault}" Value="True" >\r
<Setter Property="FontStyle" Value="Italic" />\r
xmlns:Properties="clr-namespace:HandBrakeWPF.Properties">\r
\r
<UserControl.Resources>\r
- <Style TargetType="Button">\r
+ <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">\r
<Setter Property="Padding" Value="8,2" />\r
<Setter Property="FontSize" Value="11.5" />\r
<Setter Property="VerticalAlignment" Value="Center" />\r
<Setter Property="MinHeight" Value="22" />\r
</Style>\r
\r
- <Style TargetType="TextBlock">\r
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Setter Property="Margin" Value="0,0,5,0" />\r
</Style>\r
\r
- <Style TargetType="TextBox">\r
+ <Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">\r
<Setter Property="Padding" Value="5,2" />\r
<Setter Property="MinHeight" Value="22" />\r
<Setter Property="VerticalContentAlignment" Value="Center" />\r
<Setter Property="ToolTipService.ShowDuration" Value="20000" />\r
</Style>\r
\r
- <Style TargetType="CheckBox">\r
+ <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}">\r
<Setter Property="Margin" Value="0,2,0,2" />\r
<Setter Property="VerticalAlignment" Value="Center" />\r
</Style>\r
\r
- <Style TargetType="ListBoxItem">\r
+ <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="Padding" Value="8,4" />\r
</Style>\r
\r
</ListBox.ContextMenu>
<ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
+ <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0,0,0,1" />
<Setter Property="ToolTip">
<Setter.Value>
<Grid MaxWidth="650" Margin="0,5,0,5" Style="{StaticResource LongToolTipHolder}">
<Grid.Resources>
- <Style TargetType="TextBlock">
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="0,5,0,5" />
</Style>
</Grid.Resources>
Height="16"
Margin="10,0,10,0">
<Image.Style>
- <Style TargetType="{x:Type Image}">
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource {x:Type Image}}">
<Style.Triggers>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Waiting">
<Setter Property="Source" Value="..\Images\Movies.png" />
</ListBox.ContextMenu>
<ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
+ <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0,0,0,1" />
</Style>
</Image.LayoutTransform>
<Image.Style>
- <Style TargetType="{x:Type Image}">
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource {x:Type Image}}">
<Style.Triggers>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Waiting">
<Setter Property="Source" Value="..\Images\Movies.png" />
<StackPanel Orientation="Horizontal" >
<StackPanel.Resources>
- <Style TargetType="Button">
+ <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Padding" Value="8,2" />
</Style>
</StackPanel.Resources>
<Grid Style="{StaticResource LongToolTipHolder}" Margin="0,5,0,0" >
<Grid.Resources>
- <Style TargetType="TextBlock">
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="0,5,0,5" />
</Style>
</Grid.Resources>
<Grid Style="{StaticResource LongToolTipHolder}" Margin="0,5,0,0" Visibility="{Binding StatsVisible, Converter={StaticResource boolToVisConverter}}">
<Grid.Resources>
- <Style TargetType="TextBlock">
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="0,5,0,5" />
</Style>
</Grid.Resources>
SelectionMode="Single" \r
PreviewKeyDown="SelectionGrid_OnKeyDown">\r
<ListBox.ItemContainerStyle>\r
- <Style TargetType="ListBoxItem">\r
+ <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="HorizontalContentAlignment" Value="Stretch" />\r
<Setter Property="Margin" Value="0,0,0,1" />\r
</Style>\r
</ListBox.ContextMenu>\r
\r
<ListBox.ItemContainerStyle>\r
- <Style TargetType="{x:Type ListBoxItem}">\r
+ <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="HorizontalContentAlignment" Value="Stretch" />\r
<Setter Property="Margin" Value="0,0,0,1" />\r
<Setter Property="ToolTip">\r
<Setter.Value>\r
<Grid MaxWidth="650" Margin="0,5,0,5" Style="{StaticResource LongToolTipHolder}">\r
<Grid.Resources>\r
- <Style TargetType="TextBlock">\r
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Setter Property="Margin" Value="0,5,0,5" />\r
</Style>\r
</Grid.Resources>\r
</Image.LayoutTransform>\r
\r
<Image.Style>\r
- <Style TargetType="{x:Type Image}">\r
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource {x:Type Image}}">\r
<Style.Triggers>\r
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Waiting">\r
<Setter Property="Source" Value="Images\Movies.png" />\r
<Setter Property="ToolTipService.ShowDuration" Value="20000" />\r
</Style>\r
\r
- <Style TargetType="{x:Type ComboBox}">\r
+ <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">\r
<Setter Property="MinHeight" Value="22"/>\r
<Setter Property="Margin" Value="0,2,0,2" />\r
</Style>\r
\r
- <Style TargetType="{x:Type TextBlock}">\r
+ <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">\r
<Setter Property="VerticalAlignment" Value="Center"/>\r
</Style>\r
- \r
- <Style TargetType="{x:Type TextBox}">\r
+\r
+ <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">\r
<Setter Property="VerticalContentAlignment" Value="Center"/>\r
<Setter Property="MinHeight" Value="20"/>\r
</Style>\r
\r
- <Style TargetType="{x:Type Button}">\r
+ <Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">\r
<Setter Property="MinHeight" Value="22"/>\r
</Style>\r
\r
- <Style TargetType="{x:Type RadioButton}">\r
+ <Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {x:Type RadioButton}}">\r
<Setter Property="Margin" Value="0,0,0,8" />\r
</Style>\r
\r
<SolidColorBrush x:Key="GlyphBrush" Color="#444"/>\r
\r
- <Style x:Key="DropButtonStyle" TargetType="ToggleButton" >\r
+ <Style x:Key="DropButtonStyle" TargetType="ToggleButton" BasedOn="{StaticResource {x:Type ToggleButton}}">\r
<Setter Property="Padding" Value="2,2" />\r
<Setter Property="ContentTemplate">\r
<Setter.Value>\r
</Setter>\r
</Style>\r
\r
- <Style x:Key="hoverlessListBoxItemStyle" TargetType="{x:Type ListBoxItem}">\r
+ <Style x:Key="hoverlessListBoxItemStyle" TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="Background" Value="Transparent"/>\r
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>\r
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>\r
\r
<!-- Fixes HorizontalContentAlignment and VerticalContentAlignment binding errors that you get when you setup MenuItems by binding their ItemSource property -->\r
<!-- https://social.msdn.microsoft.com/Forums/vstudio/en-US/42cd1554-de7a-473b-b977-ddbd6298b3d0/binding-error-when-using-compositecollection-for-menuitems?forum=wpf -->\r
- <Style TargetType="MenuItem">\r
+ <Style TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}">\r
<Setter Property="HorizontalContentAlignment" Value="Left"/>\r
<Setter Property="VerticalContentAlignment" Value="Center"/>\r
</Style>\r
SelectionMode="Extended">\r
\r
<ListBox.ItemContainerStyle>\r
- <Style TargetType="ListBoxItem">\r
+ <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">\r
<Setter Property="HorizontalContentAlignment" Value="Stretch" />\r
<Setter Property="Margin" Value="0,0,0,1" />\r
</Style>\r
</Grid.RowDefinitions>
<Grid.Resources>
- <Style TargetType="TextBlock">
+ <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="0,3,0,3" />
</Style>
- <Style TargetType="CheckBox">
+ <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}">
<Setter Property="Margin" Value="0,2,0,2" />
</Style>
</Grid.Resources>