fix: restore drop zone click - add Transparent background to inner Grid, remove IsHitTestVisible from Rectangle

This commit is contained in:
2026-04-16 09:39:30 +01:00
parent 1de957f73e
commit da992c94cd

View File

@@ -1,4 +1,4 @@
<UserControl x:Class="EbayListingTool.Views.NewListingView" <UserControl x:Class="EbayListingTool.Views.NewListingView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
@@ -98,14 +98,14 @@
Cursor="Hand" Cursor="Hand"
MinHeight="180" MinHeight="180"
AutomationProperties.Name="Photo drop zone - drop photos here or click to browse"> AutomationProperties.Name="Photo drop zone - drop photos here or click to browse">
<Grid> <Grid Background="Transparent">
<!-- Dashed border via Rectangle --> <!-- Dashed border via Rectangle -->
<Rectangle x:Name="DropBorderRect" <Rectangle x:Name="DropBorderRect"
StrokeThickness="2" StrokeThickness="2"
StrokeDashArray="6,4" StrokeDashArray="6,4"
RadiusX="10" RadiusY="10" RadiusX="10" RadiusY="10"
Stroke="{DynamicResource MahApps.Brushes.Gray6}" Stroke="{DynamicResource MahApps.Brushes.Gray6}"
IsHitTestVisible="False"/> />
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="0,40" Margin="0,40"
IsHitTestVisible="False"> IsHitTestVisible="False">