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">
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
||||||
<Button
|
<Button
|
||||||
Margin="0,20,0,20"
|
Margin="0,20,0,20"
|
||||||
|
Click="CancelButtonClicked"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -133,7 +134,6 @@
|
|||||||
FontSize="24"
|
FontSize="24"
|
||||||
FontWeight="Normal"
|
FontWeight="Normal"
|
||||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
MouseDown="ProjectsTextBlock_MouseDown"
|
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|||||||
@@ -91,10 +91,5 @@ namespace ProjectsEditor
|
|||||||
project.Name = EditNameTextBox.Text;
|
project.Name = EditNameTextBox.Text;
|
||||||
project.OnPropertyChanged(new PropertyChangedEventArgs(nameof(Project.CanBeSaved)));
|
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