public FileOpenPickerPage() { this.InitializeComponent(); // This is a static public property that will allow downstream pages to get // a handle to the FileOpenPickerPage instance in order to call methods that are in this class. Current = this; // This frame is hidden, meaning it is never shown. It is simply used to load // each scenario page and then pluck out the input and output sections and // place them into the UserControls on the main page. HiddenFrame = new Windows.UI.Xaml.Controls.Frame(); HiddenFrame.Visibility = Windows.UI.Xaml.Visibility.Collapsed; LayoutRoot.Children.Add(HiddenFrame); // Populate the sample title from the constant in this file. SetFeatureName(FEATURE_NAME); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { var FileOpenPickerPage = new SDKTemplate.FileOpenPickerPage(); FileOpenPickerPage.Activate(args); }