[Projects] optimizing click handlers

This commit is contained in:
donlaci
2024-06-20 13:25:32 +02:00
parent 4c4630ef75
commit e6b56c4152
2 changed files with 1 additions and 6 deletions

View File

@@ -126,6 +126,7 @@
<StackPanel Grid.Row="0" Orientation="Horizontal">
<Button
Margin="0,20,0,20"
Click="CancelButtonClicked"
Background="Transparent"
VerticalAlignment="Center">
<TextBlock
@@ -133,7 +134,6 @@
FontSize="24"
FontWeight="Normal"
Foreground="{DynamicResource PrimaryForegroundBrush}"
MouseDown="ProjectsTextBlock_MouseDown"
VerticalAlignment="Center"/>
</Button>
<TextBlock

View File

@@ -91,10 +91,5 @@ namespace ProjectsEditor
project.Name = EditNameTextBox.Text;
project.OnPropertyChanged(new PropertyChangedEventArgs(nameof(Project.CanBeSaved)));
}
private void ProjectsTextBlock_MouseDown(object sender, MouseButtonEventArgs e)
{
CancelButtonClicked(null, null);
}
}
}