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

  • Home
  • SEARCH
  • 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 4008476
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:45:34+00:00 2026-05-20T08:45:34+00:00

So let me put it this way. I have a LogInViewModel and a LogInView

  • 0

So let me put it this way.

I have a LogInViewModel and a LogInView. There is a Login() method in the ViewModel that gets called if the user clicks on a button in the View. Now I want the dashboard to show if the login was successful. How do I do this? I can’t find a clear answer to this in the documentation.

  • 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-20T08:45:35+00:00Added an answer on May 20, 2026 at 8:45 am

    I assume that your dashboard is essentially your shell. In which case, you can bootstrap your LoginViewModel and in the Login method, after a successful login, you can show the DashboardViewModel and close the LoginViewModel using the Caliburn.Micro WindowManager.

    Something like (using MEF):

    Bootstrapper.cs

    public class Bootstrapper : Caliburn.Micro.Bootstrapper<ILoginViewModel>
    {
      ...
    }
    

    LoginViewModel.cs

    public class LoginViewModel : Screen, ILoginViewModel
    {
        private readonly IWindowManager windowManager;
    
        private readonly IDashboardViewModel dashboardViewModel;
    
        [ImportingConstructor]
        public LoginViewModel(IWindowManager windowManager, IDashboardViewModel dashboardViewModel)
        {
            this.windowManager = windowManager;
            this.dashboardViewModel = dashboardViewModel;
        }
    
        public void Login()
        {            
            // if login success...
            this.windowManager.ShowDialog(this.dashboardViewModel);
            this.TryClose();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a difficult situation, let me put it this way, I want the
It's hard to put this into the title, so let me explain. I have
Note: Let me appologize for the length of this question, i had to put
How do I put off attribute access in Python? Let's assume we have: def
Let's say you have a class called Customer, which contains the following fields: UserName
I have this piece of code that I would like to shorten... PackageManager p
I have about 30 different flagged enums that I would like to put into
Let's say I have a file like this (pretend it were a matrix): abcde
I have a table, let's call it a that is used in a left
Let's say I have this property public ISetting Setting { get; set; } How

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.