Browse Source

Fixed DropShadow issue

Fixed an issue with the DropShadowEffect in the NavigatorWindowStyle of
AvalonDock.
pull/638/head
Abdelkarim Sellamna 11 years ago committed by Siegfried Pammer
parent
commit
177dbe5dde
  1. 144
      src/Libraries/AvalonDock/AvalonDock/Resources/NavigatorWindowStyle.xaml

144
src/Libraries/AvalonDock/AvalonDock/Resources/NavigatorWindowStyle.xaml

@ -155,75 +155,83 @@ @@ -155,75 +155,83 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ad:NavigatorWindow}">
<Border Width="574" Height="437" Background="{StaticResource NavigatorWindowBackground}" BorderBrush="{StaticResource NavigatorWindowBorderBrush}" BorderThickness="1" CornerRadius="3">
<Border.Effect>
<DropShadowEffect BlurRadius="15"/>
<Border Background="Transparent">
<Border.Effect>
<DropShadowEffect BlurRadius="5" ShadowDepth="0"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="54"/>
<RowDefinition Height="*"/>
<RowDefinition Height="42"/>
</Grid.RowDefinitions>
<Border>
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ad:ImageEx Source="{Binding Path=SelectedContent.Icon, RelativeSource={RelativeSource TemplatedParent}}" Width="16"/>
<TextBlock x:Name="titleSelectedDocument" Grid.Column="1" Text="{Binding Path=SelectedContent.Title, RelativeSource={RelativeSource TemplatedParent}}" FontSize="14" FontWeight="Bold" VerticalAlignment="Center" Margin="4,0,0,0" TextTrimming="CharacterEllipsis"/>
</Grid>
<TextBlock Grid.Row="1" Text="{Binding Path=SelectedContent.ContentTypeDescription, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=''}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
</Grid>
</Border>
<Border Grid.Row="1" Background="{StaticResource NavigatorWindowContentsBackground}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="{x:Static adRes:Resources.NavigatorWindow_ActiveToolWindows}" FontWeight="Bold"/>
<ListBox
Grid.Row="1"
Margin="0,0,10,0"
ItemsSource="{TemplateBinding DockableContents}"
Style="{StaticResource NavigatorWindowContentsListStyle}">
</ListBox>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="{x:Static adRes:Resources.NavigatorWindow_ActiveFiles}" FontWeight="Bold"/>
<ListBox
Grid.Row="1"
x:Name="activeFileList"
Margin="0,0,10,0"
ItemsSource="{TemplateBinding Documents}"
Style="{StaticResource NavigatorWindowDocumentsListStyle}">
</ListBox>
</Grid>
</Grid>
</Border>
<Border Grid.Row="2" Margin="5">
<TextBlock Text="{Binding Path=SelectedContent.ItemContent.InfoTip, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=''}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
</Border>
</Grid>
</Border>
<Border Width="574"
Height="437"
Background="{StaticResource NavigatorWindowBackground}"
BorderBrush="{StaticResource NavigatorWindowBorderBrush}"
BorderThickness="1"
SnapsToDevicePixels="True"
CornerRadius="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="54"/>
<RowDefinition Height="*"/>
<RowDefinition Height="42"/>
</Grid.RowDefinitions>
<Border>
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ad:ImageEx Source="{Binding Path=SelectedContent.Icon, RelativeSource={RelativeSource TemplatedParent}}" Width="16"/>
<TextBlock x:Name="titleSelectedDocument" Grid.Column="1" Text="{Binding Path=SelectedContent.Title, RelativeSource={RelativeSource TemplatedParent}}" FontSize="14" FontWeight="Bold" VerticalAlignment="Center" Margin="4,0,0,0" TextTrimming="CharacterEllipsis"/>
</Grid>
<TextBlock Grid.Row="1" Text="{Binding Path=SelectedContent.ContentTypeDescription, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=''}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
</Grid>
</Border>
<Border Grid.Row="1" Background="{StaticResource NavigatorWindowContentsBackground}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="{x:Static adRes:Resources.NavigatorWindow_ActiveToolWindows}" FontWeight="Bold"/>
<ListBox
Grid.Row="1"
Margin="0,0,10,0"
ItemsSource="{TemplateBinding DockableContents}"
Style="{StaticResource NavigatorWindowContentsListStyle}">
</ListBox>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="{x:Static adRes:Resources.NavigatorWindow_ActiveFiles}" FontWeight="Bold"/>
<ListBox
Grid.Row="1"
x:Name="activeFileList"
Margin="0,0,10,0"
ItemsSource="{TemplateBinding Documents}"
Style="{StaticResource NavigatorWindowDocumentsListStyle}">
</ListBox>
</Grid>
</Grid>
</Border>
<Border Grid.Row="2" Margin="5">
<TextBlock Text="{Binding Path=SelectedContent.ItemContent.InfoTip, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=''}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
</Border>
</Grid>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>

Loading…
Cancel
Save