fix: restore drop zone click - add Transparent background to inner Grid, remove IsHitTestVisible from Rectangle
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user