Skip to content

Commit

Permalink
Adding Shadow to Menuflyout in ComboBox (#9560)
Browse files Browse the repository at this point in the history
* Adding shadow to Menuflyout in ComboBox

* reverting values of passwordchar in the combined fluent dictionaries
  • Loading branch information
siagupta0202 authored Aug 14, 2024
1 parent cbfd7cc commit aa7c73e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
VerticalOffset="1">
<Border
x:Name="DropDownBorder"
Margin="0"
Margin="12,0,12,18"
Padding="0,4,0,6"
Background="{DynamicResource ComboBoxDropDownBackground}"
BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}"
Expand All @@ -288,6 +288,13 @@
TextElement.FontSize="{TemplateBinding FontSize}" />
</ScrollViewer>
</Grid>
<Border.Effect>
<DropShadowEffect
BlurRadius="20"
Direction="270"
Opacity="0.25"
ShadowDepth="6"/>
</Border.Effect>
</Border>
</Popup>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@
</Grid>
</Grid>
<Popup x:Name="PART_Popup" MinWidth="{TemplateBinding ActualWidth}" VerticalAlignment="Center" AllowsTransparency="True" Focusable="False" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="{TemplateBinding Popup.Placement}" PopupAnimation="{TemplateBinding Popup.PopupAnimation}" VerticalOffset="1">
<Border x:Name="DropDownBorder" Margin="0" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<Border x:Name="DropDownBorder" Margin="12,0,12,18" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<!--Will revist this code while doing performance evaluation for dynamic resources.-->
<Border.RenderTransform>
<TranslateTransform />
Expand All @@ -1354,6 +1354,9 @@
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" TextElement.FontSize="{TemplateBinding FontSize}" />
</ScrollViewer>
</Grid>
<Border.Effect>
<DropShadowEffect BlurRadius="20" Direction="270" Opacity="0.25" ShadowDepth="6" />
</Border.Effect>
</Border>
</Popup>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@
</Grid>
</Grid>
<Popup x:Name="PART_Popup" MinWidth="{TemplateBinding ActualWidth}" VerticalAlignment="Center" AllowsTransparency="True" Focusable="False" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="{TemplateBinding Popup.Placement}" PopupAnimation="{TemplateBinding Popup.PopupAnimation}" VerticalOffset="1">
<Border x:Name="DropDownBorder" Margin="0" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<Border x:Name="DropDownBorder" Margin="12,0,12,18" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<!--Will revist this code while doing performance evaluation for dynamic resources.-->
<Border.RenderTransform>
<TranslateTransform />
Expand All @@ -1326,6 +1326,9 @@
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" TextElement.FontSize="{TemplateBinding FontSize}" />
</ScrollViewer>
</Grid>
<Border.Effect>
<DropShadowEffect BlurRadius="20" Direction="270" Opacity="0.25" ShadowDepth="6" />
</Border.Effect>
</Border>
</Popup>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@
</Grid>
</Grid>
<Popup x:Name="PART_Popup" MinWidth="{TemplateBinding ActualWidth}" VerticalAlignment="Center" AllowsTransparency="True" Focusable="False" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="{TemplateBinding Popup.Placement}" PopupAnimation="{TemplateBinding Popup.PopupAnimation}" VerticalOffset="1">
<Border x:Name="DropDownBorder" Margin="0" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<Border x:Name="DropDownBorder" Margin="12,0,12,18" Padding="0,4,0,6" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="1.5" CornerRadius="{DynamicResource PopupCornerRadius}" SnapsToDevicePixels="True">
<!--Will revist this code while doing performance evaluation for dynamic resources.-->
<Border.RenderTransform>
<TranslateTransform />
Expand All @@ -1349,6 +1349,9 @@
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" TextElement.FontSize="{TemplateBinding FontSize}" />
</ScrollViewer>
</Grid>
<Border.Effect>
<DropShadowEffect BlurRadius="20" Direction="270" Opacity="0.25" ShadowDepth="6" />
</Border.Effect>
</Border>
</Popup>
</Grid>
Expand Down

0 comments on commit aa7c73e

Please sign in to comment.