Closed shweaver-MSFT closed 3 years ago
Thanks shweaver-MSFT 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 🙌
Fixes #
PR Type
What kind of change does this PR introduce?
What is the current behavior?
SwitchPresenter from WCT doesn't work well with the GlobalProvider state as it exists today. It is not possible to simply use
ProviderManager.Instance.GlobalProvider.State
because theGlobalProvider.State
is only available after the provider has been set, so the initial binding fails and updates are never processed.What is the new behavior?
Use the new
GlobalProviderState
getter to retrieve the current state of the active GlobalProvider, ornull
if none.This is helpful for binding in XAML, since
GlobalProviderState
is consistently available via the ProviderManager.Instance singleton.PR Checklist
Please check if your PR fulfills the following requirements:
Other information