Ejemplo n.º 1
0
        public CachedFileUpdaterPage()
        {
            this.InitializeComponent();

            // This is a static public property that will allow downstream pages to get
            // a handle to the CachedFileUpdaterPage 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 the GlobalVariables.cs file.
            SetFeatureName(FEATURE_NAME);

            Scenarios.SelectionChanged += Scenarios_SelectionChanged;
            SizeChanged += CachedFileUpdaterPage_SizeChanged;
        }
Ejemplo n.º 2
0
 protected override void OnCachedFileUpdaterActivated(CachedFileUpdaterActivatedEventArgs args)
 {
     var CachedFileUpdaterPage = new SDKTemplate.CachedFileUpdaterPage();
     CachedFileUpdaterPage.Activate(args);
 }
        public CachedFileUpdaterPage()
        {
            this.InitializeComponent();

            // This is a static public property that will allow downstream pages to get
            // a handle to the CachedFileUpdaterPage 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 the GlobalVariables.cs file.
            SetFeatureName(FEATURE_NAME);

            Scenarios.SelectionChanged += Scenarios_SelectionChanged;
            SizeChanged += CachedFileUpdaterPage_SizeChanged;
        }
Ejemplo n.º 4
0
        protected override void OnCachedFileUpdaterActivated(CachedFileUpdaterActivatedEventArgs args)
        {
            var CachedFileUpdaterPage = new SDKTemplate.CachedFileUpdaterPage();

            CachedFileUpdaterPage.Activate(args);
        }