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

Loading…
Cancel
Save