[Projects] Making popup having rounded corners

This commit is contained in:
donlaci
2024-06-20 11:02:04 +02:00
parent 01d6c916d6
commit 852d67b569

View File

@@ -243,14 +243,25 @@
<Popup <Popup
IsOpen="{Binding IsPopupVisible, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" IsOpen="{Binding IsPopupVisible, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
StaysOpen="False" StaysOpen="False"
AllowsTransparency="True"
PlacementTarget="{Binding ElementName=MoreButton}" PlacementTarget="{Binding ElementName=MoreButton}"
Placement="Left"> Placement="Left">
<Grid
Background="{DynamicResource PrimaryBackgroundBrush}">
<Grid.OpacityMask>
<VisualBrush Visual="{Binding ElementName=OpacityBorder}" />
</Grid.OpacityMask>
<Border
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
x:Name="OpacityBorder"
Background="Black"
CornerRadius="5" />
<StackPanel <StackPanel
Background="{DynamicResource PrimaryBackgroundBrush}" Background="{DynamicResource PrimaryBackgroundBrush}"
Orientation="Vertical"> Orientation="Vertical">
<Button <Button
Style="{StaticResource DeleteButtonStyle}" Style="{StaticResource DeleteButtonStyle}"
Margin="5"
AutomationProperties.Name="{x:Static props:Resources.Edit}" AutomationProperties.Name="{x:Static props:Resources.Edit}"
Click="EditButtonClicked"> Click="EditButtonClicked">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
@@ -268,7 +279,6 @@
</Button> </Button>
<Button <Button
Style="{StaticResource DeleteButtonStyle}" Style="{StaticResource DeleteButtonStyle}"
Margin="5"
AutomationProperties.Name="{x:Static props:Resources.Delete}" AutomationProperties.Name="{x:Static props:Resources.Delete}"
Click="DeleteButtonClicked"> Click="DeleteButtonClicked">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
@@ -285,6 +295,7 @@
</StackPanel> </StackPanel>
</Button> </Button>
</StackPanel> </StackPanel>
</Grid>
</Popup> </Popup>
</StackPanel> </StackPanel>
<Button <Button