Ejemplo n.º 1
0
        /// <summary>
        /// Event raised when the Window has loaded.
        /// </summary>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //
            // Display help text for the sample app.
            //
            HelpTextWindow helpTextWindow = new HelpTextWindow();

            helpTextWindow.Left  = this.Left + this.Width + 5;
            helpTextWindow.Top   = this.Top;
            helpTextWindow.Owner = this;
            helpTextWindow.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Event raised when the Window has loaded.
        /// </summary>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //
            // Display help text for the sample app.
            //
            HelpTextWindow helpTextWindow = new HelpTextWindow();

            helpTextWindow.Left  = this.Left + this.Width + 5;
            helpTextWindow.Top   = this.Top;
            helpTextWindow.Owner = this;
            helpTextWindow.Show();

            OverviewWindow overviewWindow = new OverviewWindow();

            overviewWindow.Left        = this.Left;
            overviewWindow.Top         = this.Top + this.Height + 5;
            overviewWindow.Owner       = this;
            overviewWindow.DataContext = this.ViewModel; // Pass the view model onto the overview window.
            overviewWindow.Show();
        }