From b529aa7e999dc6e55d894c985ca86e95a977f5d0 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Wed, 18 Feb 2026 13:28:00 +0100 Subject: [PATCH] - gestito click su TextBox di cambio nome pezzi ed entita' per evitare che chiudesse anche il pannello ManagePartPanel --- Icarus/ManagePartPanel/ManagePartPanelV.xaml | 18 ++++++++++++++---- .../ManagePartPanel/ManagePartPanelV.xaml.vb | 8 ++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Icarus/ManagePartPanel/ManagePartPanelV.xaml b/Icarus/ManagePartPanel/ManagePartPanelV.xaml index fb93b42..e2a3bac 100644 --- a/Icarus/ManagePartPanel/ManagePartPanelV.xaml +++ b/Icarus/ManagePartPanel/ManagePartPanelV.xaml @@ -49,8 +49,13 @@ Style="{StaticResource BaseTextBlock}"/> + Visibility="{Binding TextBox_Visibility}"> + + + + @@ -69,8 +74,13 @@ Style="{StaticResource BaseTextBlock}"/> + Visibility="{Binding TextBox_Visibility}"> + + + + diff --git a/Icarus/ManagePartPanel/ManagePartPanelV.xaml.vb b/Icarus/ManagePartPanel/ManagePartPanelV.xaml.vb index ff9c652..814dd7a 100644 --- a/Icarus/ManagePartPanel/ManagePartPanelV.xaml.vb +++ b/Icarus/ManagePartPanel/ManagePartPanelV.xaml.vb @@ -23,4 +23,12 @@ End Select End Sub + Private Sub TextBox_PreviewKeyDown(sender As Object, e As KeyEventArgs) + ' per evitare che il click del tasto Enter a fine edit faccia scattare anche la chiusura + ' di tutto il pannello a causa del IsDefault sul tasto di chiusura, termino la gestione del click + If e.Key = Key.Enter Then + e.Handled = True + End If + End Sub + End Class