Skip to content

Commit 00c0e20

Browse files
committed
Changed toparent double click event to single left button up event.
1 parent 08c49ea commit 00c0e20

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Main/MainWindow.xaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,14 @@
447447
Foreground="White"/>
448448
</Grid>
449449

450-
<Border Grid.Row="2" BorderThickness="0, 0, 0, 2" BorderBrush="#3A454E" HorizontalAlignment="Stretch">
450+
<Border x:Name="GoToParentBox" Grid.Row="2" BorderThickness="0, 0, 0, 2" BorderBrush="#3A454E" HorizontalAlignment="Stretch">
451451
<Grid>
452-
<Grid.InputBindings>
453-
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DataContext.ToParentFolderCommand , RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"/>
454-
</Grid.InputBindings>
455-
452+
<i:Interaction.Triggers>
453+
<i:EventTrigger SourceName="GoToParentBox" EventName="MouseLeftButtonUp">
454+
<i:InvokeCommandAction Command="{Binding DataContext.ToParentFolderCommand, RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"/>
455+
</i:EventTrigger>
456+
</i:Interaction.Triggers>
457+
456458
<Grid.ColumnDefinitions>
457459
<ColumnDefinition Width="50"/>
458460
<ColumnDefinition Width="*"/>

0 commit comments

Comments
 (0)