CommunityToolkit / Graph-Controls

Set of Helpers and Controls for Windows development using the Microsoft Graph.
https://docs.microsoft.com/en-us/windows/communitytoolkit/graph/overview
Other
155 stars 39 forks source link

Support display account management panel #110

Closed Richasy closed 3 years ago

Richasy commented 3 years ago

PR Type

What kind of change does this PR introduce?

Feature

Support display account management panel:

image

What is the current behavior?

At this stage, WindowsProvider provides login and logout functions, the logout process does not require user involvement.

What is the new behavior?

Some usage scenarios may need to display the currently logged-in user and provide some custom operations.

PR Checklist

Please check if your PR fulfills the following requirements:

Breaking changes

The login panel and the management panel are two different usage scenarios, and their HeaderText may not be mixed, so I made some modifications:

  1. Modify the original HeaderText to AddAccountHeaderText.
  2. Add a new property ManageAccountHeaderText is used to display in the account management panel.
  3. The constructor parameters of AccountsSettingsPaneConfig have been adjusted.

Other information

A new object has been added: WebAccountCommandParameter. It is not used as an IList property in the definition of AccountsSettingsPaneConfig, because currently WindowsProvider only supports single account.

ghost commented 3 years ago

Thanks Richasy for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌