├── toolkit.snk ├── toolkit.public.snk ├── SampleTest ├── Assets │ ├── FileIcon.png │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png ├── App.xaml ├── MainPage.xaml.cs ├── Samples │ ├── PersonViewSample.xaml.cs │ ├── PeoplePickerSample.xaml.cs │ ├── GraphPresenterSample.xaml.cs │ ├── PersonViewSample.xaml │ ├── PeoplePickerSample.xaml │ ├── GraphPresenter │ │ ├── PlannerTasksSample.xaml.cs │ │ ├── TeamsChannelMessagesSample.xaml.cs │ │ ├── MailMessagesSample.xaml.cs │ │ ├── CalendarViewSample.xaml.cs │ │ ├── MailMessagesSample.xaml │ │ ├── TeamsChannelMessagesSample.xaml │ │ ├── OneDriveSample.xaml.cs │ │ ├── OneDriveSample.xaml │ │ └── CalendarViewSample.xaml │ └── GraphPresenterSample.xaml ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── Package.appxmanifest ├── MainPage.xaml └── App.xaml.cs ├── CommunityToolkit.Graph.Uwp ├── Assets │ └── person.png ├── Properties │ ├── CommunityToolkit.Uwp.Graph.Controls.rd.xml │ └── AssemblyInfo.cs ├── VisualStudioToolsManifest.xml ├── Themes │ └── Generic.xaml ├── Controls │ ├── PersonView │ │ ├── PersonAvatarType.cs │ │ └── PersonViewType.cs │ ├── GraphPresenter │ │ └── QueryOption.cs │ ├── LoginButton │ │ ├── LoginButton.Properties.cs │ │ ├── LoginButton.Events.cs │ │ ├── LoginFailedEventArgs.cs │ │ └── LoginButton.xaml │ └── PeoplePicker │ │ └── PeoplePicker.xaml ├── Converters │ ├── ObjectToStringConverter.cs │ └── UserToPersonConverter.cs ├── CommunityToolkit.Graph.Uwp.csproj ├── Triggers │ └── ProviderStateTrigger.cs └── Extensions │ └── ElementExtensions.IsVisibleWhen.cs ├── UnitTests └── UnitTests.UWP │ ├── Assets │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── UnitTestApp.xaml │ ├── SmokeTest.cs │ ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml │ ├── Package.appxmanifest │ └── VisualUITestBase.cs ├── Samples ├── UwpMsalProviderSample │ ├── Assets │ │ ├── StoreLogo.png │ │ ├── SplashScreen.scale-200.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── App.xaml │ ├── README.md │ ├── MainPage.xaml │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ └── App.xaml.cs ├── ManualGraphRequestSample │ ├── Assets │ │ ├── StoreLogo.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Wide310x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── App.xaml │ ├── App.xaml.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── Models │ │ └── TodoTask.cs │ ├── Package.appxmanifest │ ├── MainPage.xaml │ └── MainPage.xaml.cs ├── UwpWindowsProviderSample │ ├── Assets │ │ ├── StoreLogo.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Wide310x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── App.xaml │ ├── AccountManagerButton.xaml │ ├── MainPage.xaml │ ├── README.md │ ├── AccountManagerButton.xaml.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ └── App.xaml.cs ├── WpfNetCoreMsalProviderSample │ ├── App.xaml │ ├── MainWindow.xaml │ ├── WpfNetCoreMsalProviderSample.csproj │ ├── LoginButton.xaml │ ├── AssemblyInfo.cs │ ├── README.md │ ├── MainWindow.xaml.cs │ ├── CacheConfig.cs │ ├── App.xaml.cs │ └── LoginButton.xaml.cs └── WpfNetWindowsMsalProviderSample │ ├── App.xaml │ ├── MainWindow.xaml │ ├── LoginButton.xaml │ ├── WpfNetWindowsMsalProviderSample.csproj │ ├── AssemblyInfo.cs │ ├── README.md │ ├── CacheConfig.cs │ ├── MainWindow.xaml.cs │ ├── App.xaml.cs │ └── LoginButton.xaml.cs ├── global.json ├── version.json ├── .github ├── ISSUE_TEMPLATE │ ├── documentation.md │ ├── question.md │ ├── feature_request.md │ └── bug_report.md └── PULL_REQUEST_TEMPLATE.md ├── nuget.config ├── CommunityToolkit.Authentication.Uwp ├── CommunityToolkit.Authentication.Uwp.csproj ├── WebAccountProviderType.cs ├── WebAccountCommandParameter.cs ├── WebAccountProviderConfig.cs └── AccountsSettingsPaneConfig.cs ├── CommunityToolkit.Authentication ├── ProviderState.cs ├── CommunityToolkit.Authentication.csproj ├── ProviderStateChangedEventArgs.cs ├── IProvider.cs ├── Extensions │ └── HttpRequestMessageExtensions.cs ├── BaseProvider.cs └── ProviderManager.cs ├── LICENSE.md ├── CommunityToolkit.Graph ├── Extensions │ ├── GraphExtensions.People.cs │ ├── ProviderExtensions.cs │ ├── GraphExtensions.cs │ └── GraphExtensions.Users.cs └── CommunityToolkit.Graph.csproj ├── Directory.Build.targets ├── CommunityToolkit.Authentication.Msal ├── CommunityToolkit.Authentication.Msal.csproj └── MsalProviderExtensions.cs ├── settings.xamlstyler ├── Directory.Build.props ├── .gitattributes └── azure-pipelines.yml /toolkit.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/toolkit.snk -------------------------------------------------------------------------------- /toolkit.public.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/toolkit.public.snk -------------------------------------------------------------------------------- /SampleTest/Assets/FileIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/FileIcon.png -------------------------------------------------------------------------------- /SampleTest/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/StoreLogo.png -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/Assets/person.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/CommunityToolkit.Graph.Uwp/Assets/person.png -------------------------------------------------------------------------------- /SampleTest/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/StoreLogo.png -------------------------------------------------------------------------------- /SampleTest/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /SampleTest/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /SampleTest/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /SampleTest/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/StoreLogo.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/StoreLogo.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/StoreLogo.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "msbuild-sdks": { 3 | "MSBuild.Sdk.Extras": "3.0.44" 4 | }, 5 | "sdk": { 6 | "version": "6.0.400", 7 | "rollForward": "latestFeature" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /SampleTest/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/SampleTest/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /SampleTest/App.xaml: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/UnitTests/UnitTests.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpMsalProviderSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/ManualGraphRequestSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CommunityToolkit/Graph-Controls/HEAD/Samples/UwpWindowsProviderSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/Properties/CommunityToolkit.Uwp.Graph.Controls.rd.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/UnitTestApp.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Samples/ManualGraphRequestSample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Samples/UwpWindowsProviderSample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /version.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "7.1.3-build.{height}", 3 | "publicReleaseRefSpec": [ 4 | "^refs/heads/main$", // we release out of main 5 | "^refs/heads/dev$", // we release out of dev 6 | "^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N 7 | ], 8 | "nugetPackageVersion": { 9 | "semVer": 2 10 | }, 11 | "cloudBuild": { 12 | "buildNumber": { 13 | "enabled": false 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Samples/WpfNetCoreMsalProviderSample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Samples/WpfNetWindowsMsalProviderSample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/VisualStudioToolsManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Documentation 3 | about: I have a documentation suggestion or question 4 | title: "[Docs]" 5 | labels: "documentation :page_with_curl:" 6 | assignees: '' 7 | 8 | --- 9 | 10 | 19 | -------------------------------------------------------------------------------- /SampleTest/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | using Windows.UI.Xaml.Controls; 6 | 7 | namespace SampleTest 8 | { 9 | public sealed partial class MainPage : Page 10 | { 11 | public MainPage() 12 | { 13 | InitializeComponent(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /SampleTest/Samples/PersonViewSample.xaml.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | using Windows.UI.Xaml.Controls; 6 | 7 | namespace SampleTest.Samples 8 | { 9 | public sealed partial class PersonViewSample : Page 10 | { 11 | public PersonViewSample() 12 | { 13 | InitializeComponent(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | using System.Resources; 6 | using System.Runtime.CompilerServices; 7 | 8 | // General Information about an assembly is controlled through the following 9 | // set of attributes. Change these attribute values to modify the information 10 | // associated with an assembly. 11 | [assembly: NeutralResourcesLanguage("en-US")] -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/README.md: -------------------------------------------------------------------------------- 1 | # MsalProvider Authentication Sample for UWP 2 | 3 | This sample demonstrates how to configure the MsalProvider to authenticate consumer MSA and organizational AAD accounts in your apps. 4 | 5 | ``` 6 | string clientId = "YOUR-CLIENT-ID-HERE"; 7 | string[] scopes = new string[] { "User.Read" }; 8 | ProviderManager.Instance.GlobalProvider = new MsalProvider(clientId, scopes); 9 | ``` 10 | 11 | It uses an IProvider implementation called MsalProvider, which leverages the official Microsoft Authentication Library (MSAL) 12 | to enable authentication for MSA and AAD accounts. -------------------------------------------------------------------------------- /nuget.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/Themes/Generic.xaml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SampleTest/Samples/PeoplePickerSample.xaml.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | using System.Collections.ObjectModel; 6 | using Microsoft.Graph; 7 | using Windows.UI.Xaml.Controls; 8 | 9 | namespace SampleTest.Samples 10 | { 11 | public sealed partial class PeoplePickerSample : Page 12 | { 13 | ObservableCollection MyPeople { get; set; } = new(); 14 | 15 | public PeoplePickerSample() 16 | { 17 | InitializeComponent(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Samples/WpfNetCoreMsalProviderSample/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Samples/UwpMsalProviderSample/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /UnitTests/UnitTests.UWP/SmokeTest.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | using Microsoft.VisualStudio.TestTools.UnitTesting; 6 | 7 | namespace UnitTests.UWP 8 | { 9 | /// 10 | /// A super basic dummy test to make sure the test harness is prepared properly and ready for more tests. 11 | /// 12 | [TestClass] 13 | public class SmokeTest 14 | { 15 | [TestCategory("SmokeTest")] 16 | [TestMethod] 17 | public void TrueIsTrue() 18 | { 19 | Assert.IsTrue(true); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question 3 | about: I have a question about how to use something in the toolkit. 4 | title: "[Question]" 5 | labels: "question :grey_question:" 6 | assignees: '' 7 | 8 | --- 9 | 10 | 23 | -------------------------------------------------------------------------------- /CommunityToolkit.Graph.Uwp/Controls/PersonView/PersonAvatarType.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | // See the LICENSE file in the project root for more information. 4 | 5 | namespace CommunityToolkit.Graph.Uwp.Controls 6 | { 7 | /// 8 | /// The type of visual representation to use for the person. 9 | /// 10 | public enum PersonAvatarType 11 | { 12 | /// 13 | /// Show a user's photo if available, otherwise show initials. 14 | /// 15 | Photo, 16 | 17 | /// 18 | /// Show the user's initials only. 19 | /// 20 | Initials, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Samples/WpfNetCoreMsalProviderSample/WpfNetCoreMsalProviderSample.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WinExe 5 | netcoreapp3.1 6 | true 7 | false 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Samples/WpfNetCoreMsalProviderSample/LoginButton.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 |