Exemplo n.º 1
0
        public Test()
        {
            dock_panel = new DockPanel();

            check_box            = new CheckBox();
            check_box.Checked   += check_box_Checked;
            check_box.Unchecked += check_box_Unchecked;
            DockPanel.SetDock(check_box, Dock.Top);
            dock_panel.Children.Add(check_box);

            Button button = new Button();

            button.Content = "YOOHOOO";
            button.Click  += button_Click;
            DockPanel.SetDock(check_box, Dock.Bottom);
            dock_panel.Children.Add(button);

            text_block      = new TextBlock();
            text_block.Text = "HELLOOOOOOO";
            dock_panel.Children.Add(text_block);


            WizardDPs.SetPointOfInterest(text_block, "TB");
            WizardDPs.SetPointOfInterest(check_box, "Wizard:1:CheckBox");
            WizardDPs.SetPointOfInterest(button, "Wizard:1:Button");

            ControlHostingWindow chw = new ControlHostingWindow("Test", dock_panel);

            PointOfInterestLocator poi_locator = new PointOfInterestLocator();

            Player player = new Player(poi_locator, TestWizard.GetRoute());

            chw.Show();
        }
Exemplo n.º 2
0
        void button_Click(object sender, RoutedEventArgs e)
        {
            TextBlock tb = new TextBlock();

            tb.Text = "Super";
            ControlHostingWindow window = new ControlHostingWindow("New window", tb);

            WizardDPs.SetPointOfInterest(window, "Wizard:1:TargetWindow");
            window.Show();
        }