Questions tagged [prism-5]

Prism 5.0 includes guidance in several new areas, resulting in new code in the Prism Library for WPF, new and updated QuickStarts, and updated documentation.

Prism provides guidance in the form of samples and documentation that help you easily design and build rich, flexible, and easily maintained Windows Presentation Foundation (WPF) desktop applications.

Official page and resources: http://msdn.microsoft.com/en-in/library/gg406140.aspx

61 questions
14
votes
2 answers

Get IOC container in a popup

I am using PRISM 5 in my WPF application. And the Shell view in my application has two regions, consider it as A and B.The region A contains a POPUP (PRISM 5 interactivity feature is used to show popup). The application is working when i create an…
Prasanth V J
  • 1,126
  • 14
  • 32
5
votes
1 answer

How to trigger NavigatingFrom in nested child region when parent region is navigating

I have Nested regions a. ParentView/ParentRegion/ParentViewModel b. Child1View/ChildRegion/Child1ViewModel b. Child2View/ChildRegion/Child2ViewModel b. Child3View/ChildRegion/Child3ViewModel CASE 1: I need to have an event or trigger when…
WPFKK
  • 1,419
  • 3
  • 20
  • 42
5
votes
1 answer

Prism 6 compatibility with older versions

I have a solution with a main project that uses Prism 5 (WPF). This solution also contains many more projects that are Prism modules. Now I have to create a new module, and I wonder if I can use Prism 6 only in that module, and it will be compatible…
Carlos
  • 1,638
  • 5
  • 21
  • 39
5
votes
2 answers

Prism Regions Not Disposing Views or ViewModels

I assumed that Prism Regions would automatically detect and call Dispose any views or view models that implemented the IDisposable interface. Turns out I was wrong. I then considered implementing IActiveAware so I could dispose my…
Nathan A
  • 11,059
  • 4
  • 47
  • 63
5
votes
2 answers

Prism 5 DelegateCommandBase.RaiseCanExecuteChanged throws InvalidOperationException

I've just updated from Prism 4.1 to 5 and code that used to work fine now throws InvalidOperationExceptions. I suspect that the root cause is that the updated async DelegateCommands don't marshall to the UI thread properly. I need to be able to call…
Jana Mandic
  • 115
  • 6
3
votes
1 answer

Prism: InvalidOperationException at region deactivation. "Deactivation is not possible in this type of region."

I'm developing an WPF application with PRISM 5.0. At some point I want to deactivate all active views in specific region. IRegion contentRegion = _regionManager.Regions .First(region => region.Name == RegionNames.ContentRegion); foreach (object…
michalczukm
  • 9,963
  • 6
  • 40
  • 47
2
votes
1 answer

Upgrading from PRISM 5 to 6

We have an application which currently uses PRISM 5 which we migrated from PRISM 4 using the upgrade notes: https://msdn.microsoft.com/en-us/library/ff921144(v=pandp.40).aspx Are there similar upgrade notes from PRISM 5 to 6? I am interested in the…
Ranjith Venkatesh
  • 1,322
  • 3
  • 20
  • 57
2
votes
1 answer

Handling PRISM Regions inside WPF TabControl

I am using WPF PRISM and looking for a graceful approach to add TabItem so that i can Navigate using RequestNavigate. This i have already achieved using following piece of code but View1 and View2 are not the actual views in fact these are just…
Furqan Safdar
  • 16,260
  • 13
  • 59
  • 93
2
votes
2 answers

Prism Regions UpdateRegionsException

I have an application which registers 2 regions with the region manager, 1 is a content control and the other a custom control. Both are fine when running the application until I tried using an RDP session. If I disconnect from the remote machine…
DWatson
  • 41
  • 1
  • 6
2
votes
1 answer

WPF Custom textbox to control user input using Regex

My goal is to write/extend a WPF textbox that can limit user by entering some invalid characters. So allowed characters is going to be a Regex. Here is what I did : public class MyTextBox : TextBox { static MyTextBox() { …
WPFKK
  • 1,419
  • 3
  • 20
  • 42
2
votes
2 answers

Inject view into TabControl using prism library

That's how I defined TabControl: