mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
[Projects] optimizing click handlers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user