Click here to Skip to main content
15,892,298 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 Title

PRISM 

29 Jul 2012 by Winfried Ripken
This article presents a framework allowing you to integrate the workflow designer more easily in your own applications
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 Aug 2014 by jacobjohn196
Professional, but paid;-)http://www.telerik.com/products/wpf/gauge.aspx[^]http://www.infragistics.com/products/wpf/radial-gauge[^]
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...
2 Oct 2015 by ChRi$m0rG@N
A tool for filtering and merging large text files.
24 Jun 2012 by Florin Badea
Architecture and usage of visual designer app used to create Blackberry UIs
28 Feb 2012 by Sunasara Imdadhusen
Hi All,I have created Custom User Control which contain TextBox and PasswordBox. it is binding completely work but when i changed any value inside TextBox or PasswordBox of user control then my source property does not getting refreshed.Following are the code for my Custom User...
28 Feb 2012 by Sunasara Imdadhusen
Finally i got solutionI am missing Mode=TwoWay in LoginView.xaml:Thanks,Imdadhusen
29 Nov 2015 by MatthewThomas
Adding design time support for regions in Prism 6
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...
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...
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...
12 Dec 2017 by Silky Kansal
There are 2 different views in which I handle the enable disable of different buttons one in the context menu but another in ribbon bar, Context menu, and ribbon bar is present n different 2 views. Enable disable of these buttons are based on the same operation which is defined in the view...
9 Dec 2017 by Kenneth Haugland
If you know what to search for it shouldn't be that difficult: DelegateCommand and CompositeCommand in Prism[^]
12 Dec 2017 by PureNsanity
Depending on how it's being used, you could declare the CompositeCommand as an exported class. Then each view model could import the CompositeCommand and register it's own command. [Export] public class SaveWidgetsCompositeCommand : CompositeCommand { } [Export] public class...
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...
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...
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...
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...!!!
23 Jan 2012 by Shahin Khorshidnia
Why did you realize that System.Timers was impossible But it works well for me!void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e){ Dispatcher.Invoke((Action)delegate() { if(Your Conditions) YourMethod(); });}
26 Mar 2021 by Programmer Decaf
I am very impressed into Prism Library's Modules. I am going to implement this module in my app which is based on Caliburn Library. Is there way to implement this module in Caliburn.Micro easily? What I have tried: I didn't do anything because...
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...
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...
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[^]
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...
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 Nov 2013 by Ramana Bellary
I want to register/create my instances like ViewModel in config file. How can I achieve this ?Is there any concept like WorkItem.GetInstance ?
4 Dec 2011 by Member 8134835
How to make DelegateCommand to requery the CanExecute function ?
4 Dec 2011 by Abhinav S
Try using the CanExecuteChanged event. Read more here[^].
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
25 Jul 2018 by nmeri17
Is there a default module loading mechanism in prism? What happens if I don't load my modules in code or by discovery? What I have tried: I can still call the module's methods like any other class (after referencing the library), so what's the catch?
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...
28 Feb 2012 by Shmuel Zang
That happens because you set the DataContext of the UserControl to itself. So, when the binding is applied, it searches the UserName property in the UserControl (and the property doesn't exist).You can bind to a property of the UserControl by giving a name to the UserControl and, use the...
23 Mar 2016 by Rubén Hinojosa Chapel
Prototype for a plugin architecture based on the Prism Library and the Modern UI for WPF (MUI) toolkit
28 May 2012 by db7uk
A composite (Prism 4) WPF application using Bing Maps to display earthquakes from around the world.
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...
12 Jan 2018 by Richard Deeming
If you want to disable the command when any one of a set of properties is empty, then just update the CanExecuteAction accordingly: CanExecuteAction = n => !string.IsNullOrEmpty(FirstProperty) && !string.IsNullOrEmpty(SecondProperty) && ...
26 Jun 2012 by soniaTan
I am getting "Error HRESULT E_FAIL has been returned from a call to a COM component" error when i am trying to upgrade the service reference. what should i do? am i missing some thing..plz suggest some solution.i m using mvvm,prism,silverlight 4,wcf
26 Jun 2012 by Sandeep Mewara
See if this helps: WCF Service reference update gets: Error HRESULT E_FAIL returned from COM component[^]
27 Jun 2012 by Vijay Walunj,Navi mumbai
delete web service reference and add it once a again.Find the “Web.config” file in Solution Explorer, and double-click on it to open it up. Once you’ve opened it, scroll to the bottom and look for the section. "AdventureWorks_WebServer.Service1Behavior" ...
27 Jun 2012 by Vijay Walunj,Navi mumbai
delete web service reference and add it once a again.Find the “Web.config” file in Solution Explorer, and double-click on it to open it up. Once you’ve opened it, scroll to the bottom and look for the section. "AdventureWorks_WebServer.Service1Behavior" ...
23 Feb 2012 by Sunasara Imdadhusen
I have created custom Textbox in Silverlight 4, MVVM and PRISM 4. The custom text box has dynamic behavior link it dynamically set TextMode to either Password or Text.This is working perfect. ( if i am bind TextMode static)
23 Feb 2012 by Sunasara Imdadhusen
Hi All,I resolved this issue using following code, I have changed PasswordTextBox class TextMode property.public Mode TextMode{ get { return _TextMode; } set { _TextMode = value; }}Topublic Mode TextMode{ get { return (Mode) GetValue(TextModeProperty); } set {...
3 Jul 2012 by supriya29
I think if ur using silverlight and web service then it is helpful or easy to use "LINQ to SQL" class template. and LINQ Queries to fetch data.otherwise plz tell U R actual problem in steps.
27 Mar 2012 by radhwane
I don't understand what is it Eventagregator exactely and how can'i create this Event ,also i have some problems whith command in PrismV4thanks
28 Jan 2017 by Illya Reznykov
Screen saver application written in WPF with Prism pattern
30 Oct 2012 by mohammadghaderian.bp
HiI am writing an application that base on silverlight 5 and MVVM framework and Prism library.I work with prism with unity container.when I test my application in vs 2010 it work correctly.but when I load it on IIS I frequency get this error message :Error Message Image => Error...
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...
4 Aug 2014 by Richard MacCutchan
WPF could be a good choice, but a lot depends on what the application does under the covers. I would suggest taking a look at some of the WPF articles here on CodeProject[^] to see what can be done.
17 Nov 2014 by Shweta Lodha
This tip will talk about how to handle events associated with UI controls in MVVM structure.
28 Jun 2013 by Vladimir Yusim
Presents a library which allows to open and handle dialogs in MVVM manner.
27 Jun 2014 by somnath roy24
hi friends,Can someone help to create a silverlight datagrid with datapager which will dynamically fecth data from stored procedure by sending the index and page size and fetch the exact number of data from database? I mean something that is on demand fetching of data? Thanking You...
29 Jun 2018 by nmeri17
I'm trying to inject a view into my shell. The docs state Quote: The RegionManager class provides access to the Region objects within the application. but when I initialize the RegionManager class and attempt to call Regions["MAIN_REGION"] on this instance, it says no such region was found in...
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...
29 Jun 2018 by nmeri17
In order to obtain the region manager at work in the shell from other modules, I took the RegionManager argument passed into Shell by Prism, and assigned it to a member field. public partial class Shell : Window { public IRegionManager x; public Shell(IRegionManager...
19 Oct 2012 by nixon13
hiI am developing one wpf application in mvvm model in prism framework.i created one usercontrol in one module and i used in another module.i successfully import that usercontrol in my module but i can't bind properties to that user control. it act as a single control not different control...
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",...
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; ...
16 Nov 2014 by vinuvasahanponniah
xaml:xmlns="http://schem...
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.
2 Apr 2013 by Chandramouleswaran
Participatory IDE framework built using WPF, PRISM and other open source projects
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...
28 Oct 2014 by Sergey Alexandrovich Kryukov
It has nothing to do with your code. This is nothing but the matter of using Visual Studio. It's Solution Explorer has the context menu. You need to choose what to run. Select the application project node, not the library project. Activate the context menu. Either run selected application from...
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?
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 ...
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...
2 Apr 2012 by Sunasara Imdadhusen
I have two Views called UserView and RoleView.UserView.xaml contains RadGridView which contain three columns UserID (Label) | UserName (Label)| Role (Dropdown).RoleView.xaml contains one TextBox where i can add Roles into database. Role (Textbox). Step 1. Now first i open the...
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.
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...
21 Jun 2012 by soniaTan
I am new to MVVM..I m creating a silverlight application ..i have created dataservice n a branchMaster view...i have a datagrid in that view.i want to populate the datagrid with the records from branchMaster table.n also do insert,update n delete function on it..i have a show button ,update...
22 Jun 2012 by Vani Kulkarni
Have a look at below links for starters:MVVM Silverlight 4.0 Simplified[^]Data and Command Bindings for Silverlight MVVM Applications[^]WPF/Silverlight: Step By Step Guide to MVVM[^]
19 Feb 2013 by Raj Kumar Pandey "Achyutanand"
Steps to be followed.1.Bind the datagrid with a List.2.Update the list on Update/Save/Delete3.Use UpdateSourceTrigger(Recomended) to referesh the value of the List in Grid or bind with Item Source.Enjoy MVVM :)
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.
12 Jan 2012 by Savalia Manoj M
Hi All,I am developing Silverlight application with Prism 4 and WCF RIA service.I had searched on google to get sample explaining this, but failed to get any successful output.I am confuse about how to use RIA service in PRISM Application.Please suggest any link which provide...
12 Jan 2012 by Jaganathan Bantheswaran
Hi,I hope this pdf guide will help you
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.
20 Oct 2014 by Shmuel Zang
Try this MSDN topic: http://msdn.microsoft.com/en-us/library/gg405484(v=pandp.40).aspx.
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 2012 by Oliver Bleckmann
hey guys, Is there a way of using xaml graphics (from within xaml) in a hierarchical way (e.g. icons.symbols.currency.dollar.xaml) and with intellisense support!? maybe even from another assembly!? for instance, let's say a we are going to put some icons from our iconliberary into something...
1 Sep 2018 by san2debug
Hi All, I have developed a sample WPF application using Prism 7.1 and I want to use a unit testing framework (NUnit) for testing my sample WPF application. What I have tried: I tried to do unit testing using a test project for a sample WPF application but I can't able to find the prism...
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...
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...
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...
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.
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...
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 ...
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...
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
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.
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...
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.
7 Mar 2015 by Subramanyam Shankar
The link you provided didn't work.Hope this helpshttps://msdn.microsoft.com/en-us/library/ff921146.aspxhttps://msdn.microsoft.com/en-us/library/gg406140.aspxhttps://msdn.microsoft.com/en-us/library/ff921146(v=pandp.40).aspx
21 Apr 2013 by RowanArkison
Hi@all!I have a service, which uses user defined object providers (e.g. logic to access different data sources) by [ImportMany]. Since I want to use the default PRISM ILoggerFacade within the IObjectProvider Implementations, I have set up the importing constructor like this: ...
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...