Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6966905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:15:08+00:00 2026-05-27T16:15:08+00:00

I have a login page in Silverlight 4. I am using MVVM to handle

  • 0

I have a login page in Silverlight 4. I am using MVVM to handle all interactions with the page. On successful login I have a custom event that fires in my view model followed by code to navigate to the main page. I use event aggregation, publish & subscribe for navigating between views.

 AnimateLoginSuccess(this, null);
//code to navigate to the main page after successful login.

I handle this event in my view, wiring it up like this, where LoginSuccessStoryboard is the storyboard I have created for some basic animation:

    //constructor of view
    public Login(LoginVM vm)
    {
        InitializeComponent();

        DataContext = vm;
        thisVM = vm;

        vm.AnimateLoginSuccess += new EventHandler(vm_AnimateLoginSuccess);

    }


//event handling method in view
    void vm_AnimateLoginSuccess(object sender, EventArgs e)
    {
        LoginSuccessStoryboard.Begin();
    }

Now, the problem is, even though the animation begins after successful login, the next lines that handle moving to a different view on successful login make the moving to the next view so fast that it doesn’t wait for the animation to finish. Thereby making the animation virtually non-existant. Any ideas on how to make this work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:15:09+00:00Added an answer on May 27, 2026 at 4:15 pm

    You could use the Completed event of your Storyboard, to navigate to your view after the animation has ended. Add a method to your ViewModel, that gets executed after the animation to navigate to the default first view.

    public Login(LoginVM vm) {
        InitializeComponent();
    
        LoginSuccessStoryboard.Completed += new EventHandler(NavigateToViewAfterAnimation);
        DataContext = vm;
        thisVM = vm;
    
        vm.AnimateLoginSuccess += new EventHandler(vm_AnimateLoginSuccess);
    
    }
    
    private void NavigateToViewAfterAnimation(object sender, EventArgs e) {
       thisVW.NavigateToFirstView();  // Navigates to the first view.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight app that uses a simple Login.aspx page. I have all
I'm using ASP.NET MVC 2 and have a login page that is secured via
I have created Silverlight Login Page. I use PasswordBox in that page and use
I am building a silverlight application that needs to have a login page and
Normally we have login page with username, password filed and signin button. Using the
I have a login page that has several textboxes on the page, one of
I have a Login page that captures User input like this. MD5calc ss =
I have a silverlight application that requires the user to login. The problem is
I have created a login page using java swing. and i created jar for
I have a login page that I would like to show in https. After

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.