The SharePointFiles Control displays a simple list of SharePoint Files.
Exemplo n.º 1
0
        private static void DetailPanePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SharePointFileList control = d as SharePointFileList;

            if (control.IsDetailPaneVisible)
            {
                control.ShowDetailsPane();
            }
        }
Exemplo n.º 2
0
        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);
                    }
                }
            }
        }