示例#1
0
    /// <summary>
    /// Initializes a new instance of the MobileTestPage class.
    /// </summary>
    public TestPage()
    {
      InitializeComponent();

      // Initialize the View with an empty ViewModel
      DataContext = new InitViewModel();

      _delayedInitializationTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(10) };
      _delayedInitializationTimer.Tick += OnDelayedInitializationTick;
      _delayedInitializationTimer.Start();
    }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the MobileTestPage class.
        /// </summary>
        public TestPage()
        {
            InitializeComponent();

            // Initialize the View with an empty ViewModel
            DataContext = new InitViewModel();

            _delayedInitializationTimer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(10)
            };
            _delayedInitializationTimer.Tick += OnDelayedInitializationTick;
            _delayedInitializationTimer.Start();
        }