diff options
author | Bertrand Le Roy <beleroy@microsoft.com> | 2018-04-04 00:39:05 +0300 |
---|---|---|
committer | Bertrand Le Roy <beleroy@microsoft.com> | 2018-04-04 00:39:05 +0300 |
commit | 405773a706174c9d3341083d4cd8d03df7df6195 (patch) | |
tree | fb6681d7b23e6881e488fd397aca8721c7187187 /Xamarin.PropertyEditing.Windows | |
parent | 0d469397eb994983de7decdeb9401e4d35894564 (diff) |
Use SystemDropShadowChrome for brush popup drop shadow. #234
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/Themes/Resources.xaml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml index 6636fff..691a6b6 100644 --- a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml +++ b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml @@ -11,7 +11,6 @@ <ResourceDictionary Source="PropertyEditorPanelStyle.xaml" /> </ResourceDictionary.MergedDictionaries> - <SolidColorBrush x:Key="PopupDropShadowColor">#FFFFFFFF</SolidColorBrush> <Color x:Key="DropShadowBackgroundColor">#72000000</Color> <SolidColorBrush x:Key="LiteralMarkerBrush">#55000000</SolidColorBrush> <SolidColorBrush x:Key="ResourceMarkerBrush">#FF8BD44A</SolidColorBrush> @@ -586,17 +585,16 @@ IsHitTestVisible="{Binding ElementName=brushBoxPopup, Path=IsOpen, Mode=OneWay, Converter={StaticResource OppositeBoolConverter}}" AutomationProperties.Name="{Binding Property.Name,Mode=OneTime}"/> <Popup x:Name="brushBoxPopup" StaysOpen="False" MaxWidth="300" Width="300" PopupAnimation="Slide" AllowsTransparency="True" Placement="Custom" - IsOpen="{Binding ElementName=brushBoxButton, Path=IsChecked}"> - <Border Margin="0,0,5,5" Background="{DynamicResource PopupDropShadowColor}" BorderThickness="1"> - <Border.Effect> - <DropShadowEffect BlurRadius="5" ShadowDepth="2" Opacity="0.6"/> - </Border.Effect> + IsOpen="{Binding ElementName=brushBoxButton, Path=IsChecked}"> + <theme:SystemDropShadowChrome x:Name="shadow" Color="{DynamicResource DropShadowBackgroundColor}" Margin="0,0,5,5"> + <Border x:Name="dropDownBorder" BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}" BorderThickness="1" Background="{DynamicResource ComboBoxPopupBackgroundBrush}"> <Grid> <Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="0" - Fill="{DynamicResource MenuPopupBackgroundBrush}" Stroke="{DynamicResource MenuPopupBorderBrush}"/> + Fill="{DynamicResource MenuPopupBackgroundBrush}" Stroke="{DynamicResource MenuPopupBorderBrush}"/> <local:BrushTabbedEditorControl Grid.Column="0" Grid.Row="0"/> </Grid> - </Border> + </Border> + </theme:SystemDropShadowChrome> </Popup> </Grid> </ControlTemplate> |