fix(ui): make list and task rows fully hit-testable for clicks

Add Background="Transparent" and HorizontalAlignment="Stretch" to the
DataTemplate roots in MainWindow.axaml and TaskListView.axaml so that
DoubleTapped, PointerPressed and ContextFlyout fire reliably across the
entire row surface.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mika Kuns
2026-04-13 15:41:23 +02:00
parent 7838f081dd
commit 981b8e4a3d
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
Margin="4">
<ListBox.ItemTemplate>
<DataTemplate x:DataType="vm:ListItemViewModel">
<StackPanel Margin="4,2" DoubleTapped="OnListItemDoubleTapped" PointerPressed="OnListItemPointerPressed">
<StackPanel Margin="4,2" Background="Transparent" HorizontalAlignment="Stretch" DoubleTapped="OnListItemDoubleTapped" PointerPressed="OnListItemPointerPressed">
<StackPanel.ContextFlyout>
<MenuFlyout>
<MenuItem Header="Edit"