We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8408d commit 9e4ebf2Copy full SHA for 9e4ebf2
App/ViewModels/TrayWindowViewModel.cs
@@ -301,4 +301,10 @@ public void SignOut()
301
return;
302
_credentialManager.ClearCredentials();
303
}
304
+
305
+ [RelayCommand]
306
+ public void Exit()
307
+ {
308
+ _ = ((App)Application.Current).ExitApplication();
309
+ }
310
App/Views/Pages/TrayWindowMainPage.xaml
@@ -249,5 +249,14 @@
249
250
<TextBlock Text="Sign out" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
251
</HyperlinkButton>
252
253
+ <HyperlinkButton
254
+ Command="{x:Bind ViewModel.ExitCommand, Mode=OneWay}"
255
+ Margin="-12,-8,-12,-5"
256
+ HorizontalAlignment="Stretch"
257
+ HorizontalContentAlignment="Left">
258
259
+ <TextBlock Text="Exit" Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
260
+ </HyperlinkButton>
261
</StackPanel>
262
</Page>
0 commit comments