4,456 questions
0
votes
0
answers
36
views
Re-registering a Prism region when a pin tab in TabControl
I implemented a tab system using Prism regions and Syncfusion TabControlExt. Briefly about the system: MainTabControlViewModel is the main ViewModel that stores a collection of tabs. The tab objects ...
1
vote
0
answers
75
views
Resolving ServiceProvider DI Container and Prism Dialog registration
I currently have a ServiceProvider that registers certain types from the current assembly within one container. I am trying to implement a separate prism dialogservice that would register only ...
1
vote
1
answer
359
views
MAUI Community Toolkit Popup V2 Issue with Data Communication
We're using PRISM for navigation in our .NET MAUI app (targeting .NET 9). Initially, we used Mopups for displaying popups, but later switched to the .NET MAUI Community Toolkit Popup because of its ...
0
votes
1
answer
64
views
WPF - If P has-a Q, and they are ViewModels, and the view has a template P' which contains another template Q', how can I bind something in P to Q'?
I'm using Prism/MVVM/WPF and have ViewModels:
public class ViewModelP : BindableBase
{
private string _stringP;
public string StringP
{
get => _stringP;
set => ...
0
votes
0
answers
82
views
Prism.Maui Types Not Recognized in .NET 9 MAUI Project (CS0234, Missing PrismApplication, DryIoc, IPlatformInitializer)
I'm working on a .NET MAUI project that was originally targeting .NET 8. Due to MAUI workload issues, I upgraded it to .NET 9 (Preview).
After that, I installed the latest version of Prism.Maui:
<...
1
vote
1
answer
157
views
How to inject a dependency into a WPF IValueConverter
I want to add DI to my WPF IValueConverter. I already found this question here, but it only works with Xamarin. How to resolve a dependency in IValueConverter in Xamarin.Forms using Prism/DryIoC.
So ...
0
votes
0
answers
20
views
prism:Support for AssemblyLoadContext - Loading a module with multiple versions
By using AssemblyLoadContext .NET does allow for multiple versions of a given module/dll to be loaded into an application.
Prism though requires to have Modules that are Unique by name. Because of ...
3
votes
1
answer
54
views
Build Prism path selectively base on values
Here is the data structure
data Fruit = Apple String Int
| Banana String
| ....
| Orange Int Int
data Baseket = BaseketA Fruit
| BaseketB Fruit Int
...
0
votes
0
answers
29
views
Does Unity Interceptor alter the behaviour of Prism's BindableBase.SetProperty method?
I am using Unity container with Prism's BindableBase class, and I suspect that Unity's VirtualMethodInterceptor is altering the behaviour of the SetProperty method in BindableBase. This seems to be ...
0
votes
1
answer
166
views
How to implement scoped services in tabs, (preferably) in a WPF application using Prism? [closed]
I'm creating a WPF application using the Prism framework and have run into an issue with dependency injection scopes. My application contains multiple tabs (2, at least for now), each with identical ...
0
votes
0
answers
40
views
Prism Dialog: How to Add Flashing Effect When Main Window Is Blocked?
I’m working on a WPF project using Prism, and I’ve implemented dialogs with Prism’s IDialogService. Everything works as expected: the main window is blocked while the dialog is open, and I also get a ...
0
votes
2
answers
77
views
Passing values from window to child user controls
I've spent the day looking at other questions on this topic and cannot get this particular code to work.
Background: We're using Prism to auto-register viewsmodels for views and inject services using ...
0
votes
1
answer
34
views
RegisterManySingleton as named instances
I want to inject all registered implementaions of a base interface as a collection, but I also want to resolve them as more concrete interface implementations.
For the collection resolving to work, I ...
1
vote
0
answers
89
views
How do I close down modal stack in MAUI app (with Prism)
We have an existing Xamrin Forms app that we are migrating to MAUI. At the same time we are switching to Prism.
One of the navigation appraches we have is during the setup and use of Bluetooth devices ...
0
votes
0
answers
53
views
Why are modules' resource files required in a WPF PRISM application?
I am developing a modularized, loosely coupled WPF application with PRISM framework. Modules are discovered using a directory.
Even without using any icon, file or any other resource (unless I'm not ...
1
vote
0
answers
220
views
White splash screen appears when going back to previous page in .NET MAUI when using Prism navigation
I am developing a .NET MAUI application and using Prism navigation instead of using Shell navigation for page navigation. I am using Prism.DryIoc.Maui library version 9.0.401-pre. But when using ...
0
votes
0
answers
61
views
Prism ViewModelLocator doesn't seem to work
I am currently working through the Doucmentation of Prism.Avalonia.
Somehow I generellay can not get for the life of me the VIewModelLocator.AutoWireViewModel to work. It always throws me the error: &...
0
votes
0
answers
33
views
Global Style defined in the "App.xaml" didn't work after imported the prism framework
I'm trying a WPF demo with Prism Framework. I have create a new WPF project and imported Prism.DryIOC package, then modified the App.xaml file shown here. In the file, I have defined a global style ...
0
votes
1
answer
1k
views
Maui Prism .CreateWindow() navigation error
I'm working on transitioning a Xamarin.Forms app to Maui. In MauiProgram we call MauiAppBuilder.UsePrism() on the PrismAppBuilder we call .RegisterTypes() to register services and pages for navigation....
0
votes
1
answer
486
views
How to get hardware back button working on Prism Maui
I am working on trying to get the android hardware back button working on a prism Maui application. This appears to have been an issue for a while, and is possibly still one. (Please correct me if I ...
0
votes
1
answer
68
views
Why is the DataContext on my View Null in a Custom RegionBehavior using Prism?
I am using Prism for WPF, and I am having an issue disposing view models in a TabControl when the tab is closed. This is leading to a memory leak. I have IDisposable in my view and view models (VM) to ...
0
votes
1
answer
40
views
Prism WPF CompositeCommand issues
I have an application where I am using a CompositeCommand to fire off a series of child commands. The child commands combined could take upward of 15 seconds to finish. While that's happening I simply ...
0
votes
0
answers
929
views
Prism navigation builder issue on existing .Net Maui 8 application
I am having a very strange issue with upgrading an existing project from .net 7 to 8 in .net Maui. I have 2 projects, one a test project I am using to see why the issue I'm having is persisting, the ...
0
votes
0
answers
86
views
How can I test function with prism event aggregator subscripe inside?
I use Xunit and Moq to test my application.
I am new at this topic...
Is it possible to test the method DBConnector(...) ?
And if yes, how?
I try it with mock... but the following line causes problems:...
0
votes
0
answers
244
views
Making Prism JS to work in Rails 7 with Import Maps
I would like to use Prism in my Rails 7 project to highlight code in specific pages.
To make that:
I downloaded the Development version of Prism for Markup + HTML + ..., CSS, C-like, and JavaScript ...