private static void DetailPanePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SharePointFileList control = d as SharePointFileList; if (control.IsDetailPaneVisible) { control.ShowDetailsPane(); } }
private static async void DriveUrlPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (MicrosoftGraphService.Instance.IsAuthenticated) { SharePointFileList control = d as SharePointFileList; GraphServiceClient graphClient = await GraphServiceHelper.GetGraphServiceClientAsync(); if (graphClient != null && !string.IsNullOrWhiteSpace(control.DriveUrl)) { if (Uri.IsWellFormedUriString(control.DriveUrl, UriKind.Absolute)) { await control.InitDriveAsync(control.DriveUrl); } } } }