History: make entire row clickable (pure XAML/MVVM). Add transparent overlay button spanning columns 0–1 bound to CopyHistoryOutputCommand; keep options button intact.
This commit is contained in:
parent
2f803db1c8
commit
df55d0f1db
1 changed files with 12 additions and 0 deletions
|
@ -125,6 +125,18 @@
|
|||
<TextBlock Text="Copy"/>
|
||||
</Button>
|
||||
|
||||
<!-- Full-row overlay click target (pure XAML/MVVM).
|
||||
Sits on top of icon + text (columns 0-1) and triggers copy of output. -->
|
||||
<Button Grid.ColumnSpan="2"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Focusable="False"
|
||||
Cursor="Hand"
|
||||
x:DataType="vm:MainViewModel"
|
||||
DataContext="{Binding #Root.DataContext}"
|
||||
Command="{Binding CopyHistoryOutputCommand}"
|
||||
CommandParameter="{Binding #HistoryRow.DataContext}" />
|
||||
|
||||
<!-- Context menu for right-click / long-press (Android) -->
|
||||
<Grid.ContextMenu>
|
||||
<ContextMenu>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue