Click here to Skip to main content
15,892,697 members
Everything / PRISM

PRISM

PRISM

Great Reads

by Rubén Hinojosa Chapel
Prototype for a plugin architecture based on the Prism Library and the Modern UI for WPF (MUI) toolkit
by MatthewThomas
Adding design time support for regions in Prism 6
by User 271009
Microsoft patterns & practices Prism 4 library and guidance gives WPF and Silverlight developers a very solid foundation for creating business applications.
by FurqanSafdar
This tip and trick describes a way to make MahApps.Metro Flyouts work with a modular application sample in Prism Library.

Latest Articles

by Kenneth Haugland
Useful extension method for ViewModelFirst
by Illya Reznykov
Screen saver application written in WPF with Prism pattern
by Rubén Hinojosa Chapel
Prototype for a plugin architecture based on the Prism Library and the Modern UI for WPF (MUI) toolkit
by Chandrasekhar Telkapalli
Understanding the User Business Process,analysis on benefits of doing Automation and best approaches & practices in designing the solution

All Articles

Sort by Updated

PRISM 

4 Dec 2011 by Abhinav S
Try using the CanExecuteChanged event. Read more here[^].
30 Dec 2013 by Abhinav S
You can always create sub-regions inside a region and plug in views in each of these regions as appropriate.To navigate, just remove a view and plug in another into the region/sub-region.
11 Mar 2014 by Abhinav S
TryBinding to the selected items of a ListBox (or another items controls)[^]ListView MultiSelect, MVVM and RoutedCommands[^]MVVM Multiselect Listbox[^]
29 Jun 2014 by Abhinav S
TryVirtual Paging with Silverlight/WCF Services[^]Introducing An MVVM-Friendly DomainDataSource: The DomainCollectionView[^]
8 Mar 2013 by Adil Malik
The best approach is to create an intermediate layer of Services
11 Feb 2015 by Amal E S
What is the difference between mvvm and prism ? Can we develop an application using pure MVVM.
12 Feb 2015 by Amal E S
What is the basic difference between Prism and MEF in MVVM (silverlight).
10 Mar 2014 by Arthanarieaswaran Shanmugaraj
It seems your View object is loading every time. Please load the view object at first time and store it into RegionManager. Then check if region manager has view, you can get View object from region manager. PRISM allows to get already available view from region manager.Artha
14 Aug 2018 by bluecomb
I’ve upgraded my project today to Prism 7.0.0 and Unity 6.3. Before that, I had Prism 5 and Unity 4. Now I’m running into problems with the Prism.Unity.UnityBootstrapper: it seems that the Container field is still a Microsoft.Practices.Unity.IUnityContainer instead of Unity.IUnityContainer. I...
30 Jan 2017 by Brady Kelly
I have a Prism WPF app that uses services to read data from either a web API or directly, via EF. I want to register the services into the Unity container, and am thinking having them singletons is a pretty good idea. There should only ever be one thread using any one service, as it's a desktop...
23 Jan 2012 by CGN007
I want to call a specific function on my C#-WPF MVVM application at a specific time.I'm using System.Timers in My application.But later I realized that its impossible to achieve my goal using that.Is anybody can suggest me a good solution for this.?Thanks in advance...!!!
2 Apr 2013 by Chandramouleswaran
Participatory IDE framework built using WPF, PRISM and other open source projects
22 Mar 2016 by Chandrasekhar Telkapalli
Understanding the User Business Process,analysis on benefits of doing Automation and best approaches & practices in designing the solution
2 Oct 2015 by ChRi$m0rG@N
A tool for filtering and merging large text files.
26 Jul 2012 by Christian Amado
You have a proerty called SelectedItem, this property represent your Row (is your selected object).So in your TextBox, combobox or another control you can do Something like this, in your xaml.Let me take the TextBox for the example: Hope it helps. =)
10 Jun 2013 by ChrisTopherus
Hi,in my masterthesis i decided to use some .net techniques. The appication is written in c#/wpf with the prism library regarding to architekture. Now i got a problem on the feedback of single commands, seperated executed in a composite command.I want to import some huge files for my...
17 Jun 2013 by ChrisTopherus
Hi,i'm writing an application using PRISM. I have a few long running processes where i need to give feedback to the ui. For the purpose of seperation i want to seperate the processcode from my viewmodels. at the moment, i am using classes that implement the ICommand interface and the...
31 Mar 2018 by Clifford Nelson
I would create a behavior. The following is an example of a behavior: using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Media; namespace Medtronic.NIM4.UI.Common.Converters { public class...
31 May 2012 by Comfizzy
I want to have two sets of module Catalogs, need to initialise on based on what system the user selects from login control. eg. I have Module Catalog 1:
29 Dec 2020 by Cp-Coder
This is not a direct reply to your question, but there is an easy way to do dialogs in Prism. Just create your dialog to your taste. Just do not new-up it like this: MyDialog dlg = new MyDialog(); This will violate MVVM prime directives. No....
8 Apr 2013 by cpquest
Hi all,I have developed a application which uses PRISM 4.0 in which i have a UserControl and a DataGrid in it. Based on the data grid cell value the IvalueConvertor Binded to the CellTemplate Below
11 Jun 2013 by cpquest
Hi all,I was working on a project which uses Prism 4.0 Framework. I had a requirement to monitor all my actions across my application which mean any command is executed by the application should be monitored. I have heard about IActiveAware interface which provides monitoring the commands...
19 Sep 2015 by dartfrog
I am developing wpf application using MVVM Prism. I got four views , MainWindow, ViewB, ViewC and ViewD and all are attached with their respective ViewModel. I initialized the backgroundworker at application start. see the following background worker class.public class BackGroundThread ...
30 May 2012 by Dave Kreskowiak
It's extremely unlikely you're going to get an answer to this question here. You're depending on the very few people here who have used Prism to wandering by and see your question. That's probably not going to happen any time soon.A better place to asak your question is a forum dedicated...
21 Oct 2012 by Daxa Rughani
If you want to use Binding you need to expose the usercontrol(s) as a DependencyProperty - Can access proprty in XAML or code behind.AS an example you can expose the radiobutton aspublic static readonly DependencyProperty Radio1Property = DependencyProperty.Register("Radio1",...
28 May 2012 by db7uk
A composite (Prism 4) WPF application using Bing Maps to display earthquakes from around the world.
29 May 2012 by db7uk
Region adapters in VB.NET
30 May 2012 by db7uk
If it helps. You are trying to create the shell in the wrong way. The create shell method should look like:protected override DependencyObject CreateShell(){ Shell shell = Container.Resolve(); shell.Show(); return shell;}Your shell constructor should be something...
18 Feb 2014 by Dhadhan
I am hosting WPF main form on a Winform. I use prism regionmanager for showing views on the main wpf form. For region manager to work, the below workaround is applied.if(System.Windows.Application.Current == null){ new MyApp(); //Where MyApp is Class...
29 Jun 2018 by Dirk Bahle
I do not work with regions myself but did you know that you can find a PRISM samples project at: GitHub - PrismLibrary/Prism-Samples-Wpf: Samples that demonstrate how to use various Prism features with WPF[^] This project contains at least 2 Region specific samples (see below) - does this help...
7 Aug 2018 by Dirk Bahle
Your SchoolPrism .proj file looks strange because it contains an empty StartupObject tag: I cannot test this right now but you could either try to set: 1) App.xaml in the start-up project option or 2) Remove the...
9 Nov 2021 by DoingWork
Hi Friends I have 2 different user controls i.e. ViewAUserControl.xaml , and ViewBUserControl.xaml . These controls are added dynamically in dynamic tabItems where each tabItem contains any single userControl from availabe 2 UserControls, whom...
10 May 2013 by Efe Erdoğru
An implementation of Event Aggregator in WPF MVVM PRISM 4
1 Sep 2015 by Erevis
I have Visual Studio 2015. I am trying to learn PRISM/UNITY/MEF. I have downloaded the Interactivity Quickstart solution. After resolving the reference issues, I now have this error showing up.The local property "Actions" can only be applied to types that are derived from...
15 Mar 2013 by Eugene Sadovoi
Creating scoped regions during view discovery or region navigation.
3 Apr 2012 by Eugene Sadovoi
It depends on your Model implementation but in general such notifications are received via INotifyCollectionChanged events.You may consider implementing this interface in your ViewModel if your Model does not implement it already.
4 Jan 2017 by Evosoul04
I ran into a problem with my GUI. My GUI has multiple parts in it. The first one is for an image (from 500x500 to 3000x3000 and it has to update up to 4 times each seconds) The second one is the main menu The third one has buttons with options regarding the image. I am not showing all of them at...
30 Jan 2017 by F-ES Sitecore
As long as they don't store state in the class itself you should be ok, ie if methods only use variables local to the method.
22 May 2018 by F-ES Sitecore
I googled "unit test mvc model validation" and this was the first result TDD for ASP.NET MVC Part 4: Unit Testing View Model Validation -- Visual Studio Magazine[^] If you google yourself you'll find others. In general though you should only unit test your own code, the model validation is...
24 Jun 2012 by Florin Badea
Architecture and usage of visual designer app used to create Blackberry UIs
27 Aug 2014 by flou
Hi,I'm developing a big app since 2 years in WPF .NET 4 with MVVMLight framework, SOAP WebServices, ENtityFramework...My current task is to develop the same app in full-web. So after many searches, i finally decided to use Silverlight 5 and Prism to develop in parallel both app. My...
14 Nov 2016 by FNU Amit Kumar
I am working on a Large wpf applications, We opted for Shared Resource Dictionary because ResourceDictionaries are always instantiated, everytime they are found in an XAML we might end up having one resource dictionary multiple times in memory. Get benifitted from this and cut down from 800mb...
24 Oct 2015 by FurqanSafdar
This tip and trick describes a way to make MahApps.Metro Flyouts work with a modular application sample in Prism Library.
10 Jun 2018 by George Swan
My approach, for what it's worth, would be to do something like this. Using Prism.Events, declare an event. In the following example the event's payload is a bool but you can use any object. public class DatabaseServiceIsSavedEvent : PubSubEvent { } In the class that wishes...
15 Jul 2018 by George Swan
Try setting the DataContext like this
19 Sep 2012 by Gerard Castelló Viader
How generics can help us in achieving modal windows in WPF PRISM
9 Jun 2018 by Gerry Schmitz
The "banner" is just another "view"; I see no issue slotting in with the "other views". It should have it's own "model" that responds to "incoming messages" posted from "other models" (or whatever). You do not appear to be treating it as a view but as a "user control" (?); and therefore your...
8 Jul 2014 by Gold$Coin
Hi all,Any one know an msdn link for pictorial representation of Mapping of composite application concepts Prism[^] with MVVM. as like the link i have provided please let me know.
3 Mar 2014 by hack.luminence
i have been successfully adding an item to list in a MVVM, and now my problem is maintaining the list in the view model. Every time i navigate to a page or go back to a page and return to that listview, the list resets. how will i able to achieve that? i am currently using the prism to build the...
4 Mar 2014 by hack.luminence
currently im having troubles in keeping the collections in the list in the mvvm, every time that i navigate away and return to a page, the list keeps getting empty. how am i going to deal with this? can someone help me with this? The Model: I have not implemented the others yet because i cant...
6 Mar 2014 by hack.luminence
Currently im having troubles in keeping the collections in the list in the mvvm, every time that i navigate away and return to a page, the list keeps getting empty. how am i going to deal with this? can someone help me with this?class CartingDataSource : BindableBase {public...
11 Mar 2014 by hack.luminence
hello guys i was able to add items using this methodpublic ObservableCollection cartData { get { if (App.Current._cartData == null) { App.Current._cartData = new ObservableCollection(); ...
26 Jul 2013 by hari111r
Hi I am new to MVVM. I am trying to convert my prism application in mvvm pattern. I have a custom datagrid control which has few non dependency property and fuctions. How can I access those properties in my view model.Below are the few properties and fuction i am using in my...
11 Dec 2014 by hari111r
Hi All,After every release I getting one of the below exception in few machine, after I un install the application and reinstall my this issue got resolved. Can anyone please help me to came out of it.Microsoft.Practices.Prism.Modularity.ModuleTypeLoadingException ...
24 Jul 2018 by Ian Bell, #2
If you are able to reference ALL libraries you need at build time then you do not have to use modules as defined in Prism. In this case (and if your requirements are simple) then using Prism modules can be overkill. Now, consider the situation where your application allows your users to...
25 Jul 2018 by Ian Bell, #2
Prism was designed for enterprise applications where it is not uncommon to have thousands of modules and even thousands of developers. Prisms features (e.g. assisting with with MVVM, GUI, navigation, communication between modules) are critical to large scale applications. As I mentioned, for...
1 Sep 2018 by Ian Bell, #2
It is not clear what your question is so perhaps you can provide an example of what you are trying to do. What exactly do you mean by "find the prism window"? If you are attempting to unit test the GUI (graphic user interface) then this is not what NUnit was designed for. If you are...
28 Jan 2017 by Illya Reznykov
Screen saver application written in WPF with Prism pattern
15 Nov 2016 by J. Calhoun
I tried this without the caller name and actually passed the string and it worked for me, another work around if you do not want to use the code behind because I rarely like to do such things is to bind it to a command using the System.Windows.Interactivity class and implementing a Event...
6 Aug 2014 by jacobjohn196
Professional, but paid;-)http://www.telerik.com/products/wpf/gauge.aspx[^]http://www.infragistics.com/products/wpf/radial-gauge[^]
12 Jan 2012 by Jaganathan Bantheswaran
Hi,I hope this pdf guide will help you
30 Dec 2013 by Jim parkson
All views need to be displayed in shell window ?I am newer for wpf prism framework , i am very confued on how to navigate between views.i mean, in the prism , we have one shell page and i define some region in the shell , so that mean the layout of shell was not changed , if i want to...
11 Mar 2014 by jthomas1234321
Add a second property to the viewmodel:public CartData SelectedCartDataand bind the Selected property of the listview in XAML making sure to set the Mode to TwoWay. This way the binding is pulling data from the cartData collection and pushing the selected value back into the...
4 Nov 2014 by Karthik Ravi
Hi,I am new to WPF can anyone give solution for my problem..In a shell.xamal file i have 2 region (TopRegion, MainRegion),in TopRegion i have only one combo box with 2 items, depending upon choosing the item in combo box user control will generated in MainRegion.In my another...
25 May 2016 by Kassim Shaikh
I am developing a WPF application with Prism framework. I have few modules which are interacting with each other through ViewModel or Event aggregator.I have this two module :1. Items Lists Module - which is getting real time status of the items from the server. I created a simple...
2 Aug 2012 by Kenneth Haugland
Guidelines are usually posted by Microsoft, as they are interested in people that wants to use their software.Here is the documentation:http://msdn.microsoft.com/en-us/library/gg430865%28PandP.40%29.aspx[^]
3 Aug 2016 by Kenneth Haugland
Well, they do work as expected. If you write something in the SelectedTextBox and the text isn't updated, hitting Tab when you are completed, it does update the values in your collection. But for me it works as you want it to, without any changes to the code. If you do have problems you...
9 Dec 2017 by Kenneth Haugland
If you know what to search for it shouldn't be that difficult: DelegateCommand and CompositeCommand in Prism[^]
14 Feb 2021 by Kenneth Haugland
Useful extension method for ViewModelFirst
3 Aug 2014 by Kinna-10626331
I have to build an interface in C# for a conning display like this (Example) http://www.maritime-executive.com/media/transfer/img/OL_120224_conning.jpg[^]I want to build something modern and I have main doubts about if should I use a WF or a WPF.It going to be the interface of a local...
5 Aug 2014 by Kinna-10626331
Hi , I have to design and implement a conning dashboard ( with gauges and level bars,etc..) in WPF.I have been looking for libraries like Insim , Dundas, MS Chart Controls and now I am a bit confused.All that I found looks a bit old and complex code.Is there any profesional and modern...
6 Jun 2012 by Libish Varghese Jacob
Configuring and creating an extensible composite application or Modular application with MEF (Managed Extensibility Framework) and a little bit of Prism.
4 Aug 2012 by Libish Varghese Jacob
You can see a an article here http://www.gonetdotnet.info/posts/wpf-articles/create-composite-application-wpf-prism[^] This will help you to start up with what you need.
13 Aug 2012 by Libish Varghese Jacob
you can find a sample application which uses PRISM Event Aggregator to create a simple application in WPF with MEF container here http://www.gonetdotnet.info/posts/wpf-articles/wpf-module-communication[^]. This article has detailed explanation for a newbie.
21 Oct 2017 by Luis Ormeno
Hi, You managed to solve the problem, I am in the same situation and I do not know how to solve it.
16 Dec 2014 by Maciej Los
Hmmm... i decided to post my comment as an answer ;)Start here: Developer's Guide to Microsoft Prism Library 5.0 for WPFBTW: i have no idea which is best (code first or database first), because i i think it's not comparable...
14 Aug 2012 by Martijn Kok
Your first concern is to get a reference to the RegionManager. So far I know of 2 ways to get the regionmanager of your shell. Both methods will also word when you are in another view or a viewmodel. There might be other methods using MEF or other Dependency Injection systems (like Castle...
29 Nov 2015 by MatthewThomas
Adding design time support for regions in Prism 6
24 Jan 2014 by Member 10525317
Hello everybody,I have tried to find an answer for the following scenario but have failed to come up with an answer.This may well be due to me, by my own admission, not yet having fully grasped the whole Prism concept.In my defense, I started looking into Prism only two days ago, so...
27 Jan 2014 by Member 10525317
Thanks to a kind used at stackoverflow, I was able to get this working.I had the shell subscribing to the MainMenu event which wanted to inject either a TestControlA or TestControlB into the TabRegion region, which was wrong.I removed the subscription from the shell and had the...
20 Oct 2014 by Member 11143298
I am completely new to MVVM WPF using Prism Framework. Can anybody help me to understand as to how and what thing to be included in Model,View and ViewModel. Also how ViewModel are binded.
21 Oct 2014 by Member 11143298
When i run my Project it opens a dialogue asking to locate the files named ServiceLocator.cs and ServiceLocatorImplBase.cs. Can anybody hepl me in knowing why is it used for and how to fix it.
28 Oct 2014 by Member 11143298
I have the scenario as there are four projects named as1) Freedom.Composite.Core2) Freedom.Composite.Styles(Catalogs,Commands,Converters,LoggerComponents,LoggersViewModelHelper)3) Freedom.Core.XmlSerializers(Different Styles of the UI)4) SyncDash(There are views into it.The ) When I...
4 Dec 2014 by Member 11143298
I did that made an executable project as startup project but yet it gives an activation exception. what should I do?
8 Nov 2015 by Member 11844200
Hi!I'm new in PRISM and WPF and sorry for my English too.My problem is the following:I have a datagrid, and when the user would like to delete rows, I notify him/her with a Confirmation Popup window (prism). If he/she accept, the selected rows will be deleted, but if he/she cancel the...
15 Nov 2016 by Member 11949544
Hi guys,This is actually my first question here. I tend to find all the answers browsing the net, but haven't found the answer to that question yet...*I've created this code especially for the question, look below please!*I've been trying to figure out if there is any way to do...
12 Jan 2018 by Member 12658724
I was recently asked a question on how to disable a button when the View is loaded; and then enable it again when the end-user starts entering data in some textboxes. For e.g. in a WPF Search application, only if the end-user enters some text in the Search textbox, the Search button should...
2 Apr 2018 by Member 12658724
In my view say I have a ListView. In each ListItem there is an expander. Outside the ListView there is a button, to click it will expand or collapse all expanders. Now I use Prism and MVVM in my WPF user control. What I did was in each expander I set a bool property which is binding with...
2 Apr 2018 by Member 12658724
I use another way. Bind IsExpanded and IsChecked. Similar the method at c# - StackPanel Collapsed and Visible on Button Click - Stack Overflow[^]
22 May 2018 by Member 12658724
Please see the example. Say I have the data model as public class Model { [Required(ErrorMessage = "You must enter a username.")] [StringLength(10, MinimumLength = 4, ErrorMessage = "The username must be between 4 and 10 characters long")] [RegularExpression(@"^[a-zA-Z]+$",...
10 Jun 2018 by Member 12658724
I have a View MyView and corresponding ViewModel MyViewModel. Above the MyView there is banner(user control). The banner is used by many views. Its function is to display notifications. There is a method inside the banner's code behind. Now I have a button command in the MyView. I want to press...
4 Dec 2011 by Member 8134835
How to make DelegateCommand to requery the CanExecute function ?
16 Nov 2014 by Member 8234507
Hi i am new to wpf mvvm prism. Here the items are static items(Not Resumed and Resumption and Cancellation). current item of combobox is coming from database(i.e one of the static items) The code is ActionItems = null; ...
26 Nov 2014 by Member 8234507
Hi I am showing the payslip using wpf mvvm.First time its showing payslip. i selected another payslip but wpfpdfviewer shows the previous payslip.The code ispublic PdfView(PdfViewModel viewModel){ InitializeComponent(); this.DataContext = viewModel; string...
27 Nov 2014 by Member 8234507
HiI am getting this message when i am trying delete pdf file.An exception of type 'System.IO.IOException' occurred in mscorlib.dll but was not handled in user codeAdditional information: The process cannot access the file xxxx because it is being used by another...
27 Jan 2015 by Member 8234507
HI I am new to wpf mvvm...issue is Does not allow mouse events when loader is running in wpf mvvm prism...(no actions in background)..Pls anyone help me..becasue of this i am wasteing 4 hours...pls help me...
21 Dec 2013 by Member 8816170
I made an example solution with an Shell application, two WPF library views, and a Class Library projects. The Class Library is the repository with interface for a string variable. I can access the repository string variable to get the message "Hello World". But I am unable to figure out how...