File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -301,4 +301,10 @@ public void SignOut()
301
301
return ;
302
302
_credentialManager . ClearCredentials ( ) ;
303
303
}
304
+
305
+ [ RelayCommand ]
306
+ public void Exit ( )
307
+ {
308
+ _ = ( ( App ) Application . Current ) . ExitApplication ( ) ;
309
+ }
304
310
}
Original file line number Diff line number Diff line change 249
249
250
250
<TextBlock Text =" Sign out" Foreground =" {ThemeResource DefaultTextForegroundThemeBrush}" />
251
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 >
252
261
</StackPanel >
253
262
</Page >
You can’t perform that action at this time.
0 commit comments