locked
Expression Blend 4 WPF App Windows Positioning RRS feed

  • Question

  • Hello,

    I am new to blend, and i would like to ask if it is possible and how? in details steps to do it

    My application have several Windows where you click the "Next" button, it loads another window screen displaying other items
    For example, like a Installation App.

    The question is,
    How do i make my Application position at the same place, even after i move the window, the next window(when "next" button is pressed)
    it would appear on the same place where the window was moved

    e.g
    current position is x:1 y:1
    shifted to x:10 y:10
    Click " Next"
    Window Would appear at x:10 y:10

     

     

    Thanks, would appreciate much for the help.

    Tuesday, December 21, 2010 1:33 AM

Answers

  • Thanks, i found my answer at the WPF forum

    by switching the WindowStartupLocation ="Manual"

    Then at the C# click Event Handler

    Adding

     MyApp.WindowStartupLocation = WindowStartupLocation.Manual;
                MyApp.Left = this.Left;
                MyApp.Top = this.Top;

    into

    InstallationMenu MyApp = new InstallationMenu();
                  MyApp.WindowStartupLocation = WindowStartupLocation.Manual;
                MyApp.Left = this.Left;
                MyApp.Top = this.Top;
                MyApp.Show();
                this.Close();

    • Marked as answer by Rei H Friday, December 24, 2010 1:50 AM
    Thursday, December 23, 2010 8:31 AM

All replies