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 7400019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:08:20+00:00 2026-05-29T04:08:20+00:00

I am implementing a shell extension for LightSwitch applications, looking at the sample on

  • 0

I am implementing a shell extension for LightSwitch applications, looking at the sample on MSDN.

I have looked every objects in IServiceProxy, but I couldn’t find any way to show the default screen on startup.

The default shell can show a default screen on startup, but the sample on MSDN isn’t. Is there any way to do this?

  • 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-29T04:08:21+00:00Added an answer on May 29, 2026 at 4:08 am

    Here is code I used in my Shell:

            void MinimalShell_Loaded(object sender, RoutedEventArgs e)
        {
            // Open the Default Screen
    
            // The navigation view model will only return those links that can be executed.  In order
            // to do that, it will call the CanExecute() method on the links - which is an
            // asynchronous operation. 
            // "prime" the view model by asking for the links.  If we don't do this, the first
            // command entered in the shell will not work (all commands after that will work).
            this.ServiceProxy.NavigationViewModel.NavigationItems.Count();
    
            // Getthe Tasks group as a INavigationItem
            INavigationItem objINavigationItem = 
                (this.ServiceProxy.NavigationViewModel.DefaultItem as INavigationItem);
    
            // Cast the INavigationItem to a INavigationGroup
            INavigationGroup objINavigationGroup = (INavigationGroup)objINavigationItem;
    
            if (objINavigationGroup.DefaultChild is INavigationScreen)
            {
                // Get the Default Screen
                INavigationScreen objINavigationScreen = (INavigationScreen)objINavigationGroup.DefaultChild;
    
                // Set DefaultScreenName
                DefaultScreenName = objINavigationScreen.DisplayName;
    
                // The screen may not be ready yet
                // Wait until the screen can be opened
                while (!objINavigationScreen.ExecutableObject.CanExecuteAsync)
                {
                    // Do nothing until the screen can be opened
                }
    
                // Open the Default Screen
                objINavigationScreen.ExecutableObject.ExecuteAsync();
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing a simple version of a linux shell in c. I have
I am implementing my own shell. But to supprt for command history, I need
I made shell extension (implementing IContextMenu , IShellExtInit , IExtractIcon & IPersistFile ) using
I'm implementing a Windows Explorer Shell Extension for a networked file system on Windows
I am currently working on implementing a Unix shell. I am looking to use
I am implementing view controllers that shall have different behaviour. They have a common
When implementing Quicksort, one of the things you have to do is to choose
I am implementing a shell-like program where user types command (defined by me). Just
I am writing my own shell program. I am currently implementing the cd command
I have a Prism (CAL) shell with defined regions. Each region is responsible for

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.