Determine which window to start in Bootstrapper #227
Unanswered
wuhl508159280
asked this question in
Q&A
Replies: 1 comment
-
public class Bootstrapper<MyRootViewModel>
{
protected override void Launch()
{
if (something)
this.DisplayRootView(this.RootViewModel); // Shows MyRootViewModel
else
this.DisplayRootView(this.Container.Get<ErrorViewModel>()); // Shows ErrorViewModel
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Application.Current.StartupUri = new Uri("pack://application:,,,/Windows/Error.xaml");
This code can change the interface at startup, how to write it in stylet
Beta Was this translation helpful? Give feedback.
All reactions