Comments (2)
Here is a little clip from my repro sample, you can see that as soon as I close the navigation page popover, the other commands stop working, the view model code is below & is incredibly simple:
public class MainViewModel : ViewModelBase
{
public DelegateCommand NavigateCommand { get; }
public DelegateCommand ModalCommand { get; }
public DelegateCommand PopoverCommand { get; }
public DelegateCommand NavPopoverCommand { get; }
public MainViewModel(INavigationService navigationService)
: base(navigationService)
{
Title = "Main Page";
NavigateCommand = new DelegateCommand(OnNavigate);
ModalCommand = new DelegateCommand(OnModal);
PopoverCommand = new DelegateCommand(OnPopover);
NavPopoverCommand = new DelegateCommand(OnNavPopover);
}
private async void OnNavigate()
{
var nav = await navigationService.CreateBuilder()
.AddSegment<AnotherViewModel>()
.NavigateAsync();
if (!nav.Success)
{
Debugger.Break();
}
}
private async void OnModal()
{
var navParams = new NavigationParameters()
{
{ KnownNavigationParameters.UseModalNavigation, false },
};
var nav = await navigationService.CreateBuilder()
.AddNavigationPage(true)
.AddSegment<AnotherViewModel>()
.WithParameters(navParams)
.NavigateAsync();
if (!nav.Success)
{
Debugger.Break();
}
}
private async void OnPopover()
{
var nav = await navigationService.CreateBuilder()
.AddSegment<PopoverViewModel>(true)
.NavigateAsync();
if (!nav.Success)
{
Debugger.Break();
}
}
private async void OnNavPopover()
{
var nav = await navigationService.CreateBuilder()
.AddNavigationPage(true)
.AddSegment<PopoverViewModel>()
.NavigateAsync();
if (!nav.Success)
{
Debugger.Break();
}
}
}
from prism.
closed by #3072
from prism.
Related Issues (20)
- No Root Window has been created HOT 1
- [Feature Request] Add support Keyed Service for IServiceCollection HOT 2
- Resolving with Unity works, not with DryIoc HOT 3
- [Enhancement] GetNavigationUriPath For Maui HOT 3
- [BUG] Android "hardware" back button closes the app when app contains a tabbed page with a navigation page as root page for one of the tabs HOT 1
- [BUG] Getting exception while navigating in Release mode on iOS HOT 13
- [BUG] [Android] Open app from url scheme crashes app HOT 3
- [BUG] Navigation Title view is not getting displayed on IOS HOT 2
- [BUG] Navigation Title view is not getting displayed with .net 8.0 on Andriord and IOS HOT 2
- [BUG] BindingContext cleared when performing absolute navigation HOT 3
- [Enhancement] NavigateFrom
- [Enhancement] Add ability to switch tabs and navigate
- [BUG] Android "hardware" back button closes the app when app contains a tabbed page with a navigation page as root page for one of the tabs, Take 2 HOT 4
- [BUG] Popup Dialogs are hidden/covered by calling Page when called after returning from MAUI FilePicker HOT 1
- [BUG] Link to Prism License T&C is wrong HOT 1
- PrismNavigationPage doesn't allow you to change navbar title color HOT 3
- [BUG] App crash with the attached sample project
- [BUG] .NET 8 MAUI App crashes on startup HOT 2
- [BUG] Putting an app in background when a modal is being displayed crashes the App HOT 2
- [BUG] crash when resolve an object after async function in maui app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism.