Add Done button Binding in page5

This commit is contained in:
DB p 2021-12-02 15:50:43 +09:00
parent 0982198bc3
commit 2bfbba93da
2 changed files with 7 additions and 0 deletions

View file

@ -96,6 +96,7 @@
Height="40"
Margin="0,60,0,0"
HorizontalAlignment="Right"
Click="BtnCancel_OnClick"
Content="{DynamicResource done}"
Style="{DynamicResource AccentButtonStyle}" />
</StackPanel>

View file

@ -65,5 +65,11 @@ namespace Flow.Launcher.Resources.Pages
settings.HideOnStartup = false;
}
private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
{
var window = Window.GetWindow(this);
window.Close();
}
}
}