private async void setDefaultItem_Click(object sender, RoutedEventArgs e) { // 清除登录cookies httpClient.ClearCookies(); Account data = (sender as MenuFlyoutItem).DataContext as Account; string keyName = data.Key; await AccountSettings.SetDefault(keyName); Refresh(); }