public Preferences()
        {
            this.InitializeComponent();

            configuration           = rootPage.Config;
            printerExtensionContext = rootPage.Context;
            printHelper             = new PrintHelperClass(printerExtensionContext);

            // Disable scenario navigation by hiding the scenario list UI elements
            ((UIElement)rootPage.FindName("Scenarios")).Visibility         = Windows.UI.Xaml.Visibility.Collapsed;
            ((UIElement)rootPage.FindName("ScenarioListLabel")).Visibility = Windows.UI.Xaml.Visibility.Collapsed;
            ((UIElement)rootPage.FindName("DescriptionText")).Visibility   = Windows.UI.Xaml.Visibility.Collapsed;

            DisplaySettings();
        }
Ejemplo n.º 2
0
 public void LoadAdvancedPrintSettingsContext(PrintTaskSettingsActivatedEventArgs args)
 {
     Config  = args.Configuration;
     Context = Config.PrinterExtensionContext;
     LoadScenario(typeof(DeviceAppForPrinters.Preferences));
 }