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)
- [BUG] IDialogService does not display dialog when using RelativeHeightRequest and/or RelativeWidthRequest [MAUI/9.0.271-pre] HOT 1
- [BUG] Android app crashes on startup in release mode (MAUI) HOT 1
- Adding source generator to implement commands and observables properties HOT 1
- [BUG] ContentPage ToolbarItem Icon not displaying HOT 5
- [BUG] App with Region crashes on iOS Release Mode when using WithUseInterpretation() container rule due to ContainerResolutionException HOT 2
- [BUG] Module unable to resolve unmanaged DLL from runtimes directory referenced by .deps.json HOT 1
- [BUG] Navigation is animated when parameters have turned animation off HOT 1
- [BUG] DynamicResource no longer works in .Net 8 MAUI HOT 5
- [BUG] Tabbed Page doesn't show icons and title when using NavigationPage HOT 5
- [BUG] new assembly metadata of #3038 breaks build HOT 3
- [BUG] Prism.Maui Modal Navigation with KnownNavigationParemeters.UseModalNavigation not working HOT 2
- Navigation RemovePageInstruction not working correctly HOT 7
- [BUG] No destination with ID 2 is on the NavController's back stack HOT 3
- [BUG] Prism.Navigation getParameters failed (empty parameters) HOT 1
- [BUG] Expected Navigation Failed. No Root Window has been created. HOT 1
- [BUG][MAUI] EventToCommandBehavior with RelativeSource binding throws InvalidOperationException HOT 4
- [BUG] Content of a ContentPage doesn't occupy full height when page is pushed to PrismNavigationPage HOT 4
- [BUG] Unable to unregister the service using the Prism.Maui HOT 1
- No Root Window has been created HOT 1
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.