prism navigation fails on start up #2604
Unanswered
stevensrf11
asked this question in
WPF
Replies: 3 comments
-
You can't navigate to a region that doesn't exist. You have to make sure your view is loaded first. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The region exist in the mainwindow.
Now was created were I called the requestnavigate method I guess it was not
Everthing in the code is just like where you would click a button , handle the button command in the mainview window and call the requestnavigate method there.
I would like to navigate at startup.
The only place I thought the best place to do this would be would be after the InitComposition in the MainWindow Constructor.
So are you saying I should call the requestnavigate method in the loaded event on the MainWindow.
Sent: Wednesday, October 27, 2021 at 2:55 PM
From: "Brian Lagunas" ***@***.***>
To: "PrismLibrary/Prism" ***@***.***>
Cc: "stevensrf11" ***@***.***>, "Author" ***@***.***>
Subject: Re: [PrismLibrary/Prism] prism navigation fails on start up (Discussion #2604)
You can't navigate to a region that doesn't exist. You have to make sure your view is loaded first.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I just inject view into to the region from the module at startup thanks
Sent: Wednesday, October 27, 2021 at 2:55 PM
From: "Brian Lagunas" ***@***.***>
To: "PrismLibrary/Prism" ***@***.***>
Cc: "stevensrf11" ***@***.***>, "Author" ***@***.***>
Subject: Re: [PrismLibrary/Prism] prism navigation fails on start up (Discussion #2604)
You can't navigate to a region that doesn't exist. You have to make sure your view is loaded first.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
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
-
PRISM Navigation at start up fails
I am not sure this where to ask this question
I am using PRISM 8.0 cire
At startup I try to navigate to a view to a region and it fails.
I the navigation right after the InitializeComponent method
public partial class MainWindow : ThemedWindow
{
public MainWindow()
{
InitializeComponent();
var mv = DataContext as MainWindowViewModel;
mv.NavigateToToolbar();
;
}
public void NavigateToToolbar()
{
_regionManager.RequestNavigate(RegionNames.NavigationBarRegion, "ToolbarWindow", NavigationCompleted);
}
Beta Was this translation helpful? Give feedback.
All reactions