Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e4ebf2

Browse files
authored
feat: add exit to main tray window (#95)
Closes:#94
1 parent9b8408d commit9e4ebf2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

‎App/ViewModels/TrayWindowViewModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,10 @@ public void SignOut()
301301
return;
302302
_credentialManager.ClearCredentials();
303303
}
304+
305+
[RelayCommand]
306+
publicvoidExit()
307+
{
308+
_=((App)Application.Current).ExitApplication();
309+
}
304310
}

‎App/Views/Pages/TrayWindowMainPage.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,14 @@
249249

250250
<TextBlockText="Sign out"Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
251251
</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+
<TextBlockText="Exit"Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" />
260+
</HyperlinkButton>
252261
</StackPanel>
253262
</Page>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp