prism-4

Prism PopupChildWindowAction in Desktop DLL missing

我只是一个虾纸丫 提交于 2020-01-11 06:18:00
问题 I am trying to implement modal dialog in the WPF Prism Desktop application. From Prism guidance I can see that proper way should be using Interaction: <i:Interaction.Triggers> <prism:InteractionRequestTrigger SourceObject="{Binding ConfirmCancelInteractionRequest}"> <prism:PopupChildWindowAction ContentTemplate="{StaticResource ConfirmWindowTemplate}"/> </prism:InteractionRequestTrigger> </i:Interaction.Triggers> But PopupChildWindowAction is not available in the Microsoft.Practices.Prism

Prism PopupChildWindowAction in Desktop DLL missing

孤人 提交于 2020-01-11 06:15:24
问题 I am trying to implement modal dialog in the WPF Prism Desktop application. From Prism guidance I can see that proper way should be using Interaction: <i:Interaction.Triggers> <prism:InteractionRequestTrigger SourceObject="{Binding ConfirmCancelInteractionRequest}"> <prism:PopupChildWindowAction ContentTemplate="{StaticResource ConfirmWindowTemplate}"/> </prism:InteractionRequestTrigger> </i:Interaction.Triggers> But PopupChildWindowAction is not available in the Microsoft.Practices.Prism

how to create an instance of a class of another module without adding reference using prism in wpf

℡╲_俬逩灬. 提交于 2019-12-24 06:04:41
问题 I am working on WPF application using Prism 4.0 and MEF. I want to create an instance of class A of Module A in Class B of Module B and want to access properties and methods of Class A without adding any reference of Module A in Module B. I know that prism provide this functionality, but don't know how to do it. We've specified all the assemblies in config file as follows: <modules> <module assemblyFile="ModuleA.dll" moduleType="ModuleA.ModuleA, ModuleA, Version=1.0.0.0, Culture=neutral,

Non-Generic CompositePresentationEvent and EventSubscription?

China☆狼群 提交于 2019-12-24 05:51:18
问题 I am trying to create a TPayLoad -free CompositePresentationEvent , that its delegate is parameterless. I want to have a global application event that takes no parameters such as UserLoggedInEvent , UserGotIdleEvent etc. etc. How should this be done with the Prism 4.0 event aggregation system? 回答1: This post clarified some things for me. Anyway I realize now the the Prism EA system is really clumzy tho. Here are some extension methods that focus on reducing the verbosity of the EA. 回答2: For

XamlParseException in View

只谈情不闲聊 提交于 2019-12-20 07:29:14
问题 I've got a view that shows only a Label. The viewmodel is injected correctly in the view because the text of the label is bound to a viewmodel property. Now, if I try to define a DataGrid in the xaml, I've got a XamlParseException: {System.Windows.Markup.XamlParseException: Type 'DataGrid' not found. [Line: 16 Position: 45] su System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) su Common.Views.FunctionalityView.InitializeComponent() su Common.Views

DataGrid event handling in MVVM

岁酱吖の 提交于 2019-12-13 03:39:19
问题 I have a DataGrid and need to handle its events. I have a business logic to be implemented which needs to be handled in the ViewModel and able to unit test. Can I raise events and handle them in the ViewModel ? In this case how to unit test? 回答1: You can use EventTrigger from System.Windows.Interactivity or MvvmLight <DataGrid x:Name="myProtokollList"> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseDoubleClick"> <i:InvokeCommandAction Command="{Binding Path=OpenCommand}"

How to preload Prism views at application startup?

自古美人都是妖i 提交于 2019-12-13 02:05:05
问题 We use Prism 4 for WPF as well as the navigation functionality which comes with Prism. When navigating to (loading) certain views in our application we notice a delay - which understandably comes from instantiating the view and its dependencies, this includes loading necessary assemblies from disk. We would like to preload these views at application startup while showing a splash screen or something similar. Has anyone done something similar and would like to share their experiences? 回答1: We

Could not load file or assembly Microsoft.Expression.Interactions and GalaSoft.MvvmLight.Extras.WPF4

╄→гoц情女王★ 提交于 2019-12-12 12:07:18
问题 I am facing unknown problem while using Prism 4. We implement business solution in MVVM pattern. For that I have used 1. Microsoft.Expression.Interactions 2. System.Windows.Interactivity 3. GalaSoft.MvvmLight.Extras.WPF4 for Interaction.Triggers, CallMethodAction and EventToCommand. <SWI:Interaction.Triggers> <SWI:EventTrigger SourceObject="{Binding ElementName=txtName}" EventName="GotFocus"> <MEI:CallMethodAction TargetObject="{Binding Path=DataContext,ElementName=txtName}" MethodName=

Prism 4.1 , Silverllight 5 and .Net 4.5.1 DelegateCommant for Button Not working

大兔子大兔子 提交于 2019-12-12 02:54:02
问题 I'm new to Prism. I'm trying to setup a test project on Prism. I download Prism 4.1 as I found out Prism 5 doesn't work with Silverlight 5 Yet. so My configuration is Like this. I've visual studio 2013 , Silverlight 5 and .Net 4.5.1. A basic exercise 1 Homepage divided in to 2 parts with 2 Prism module I followed for Hello world example. Done and working 1 Region Hello, 2end Regigon world Now in Hello Module I create 1 User form. Created 1 Use.cs with INotifyPropertyChanged etc. Followed MVVM

Problem with Prism RegionManager and Unity container

别等时光非礼了梦想. 提交于 2019-12-11 07:51:26
问题 I have a main Silverilght project and other modules and I'm using Prism to glue them together along with Unity for Dependency Injection. I have one of my modules that depends on an IRegionManager which, naturally, gets injected to it by Unity. The issue I'm running to is that, the Regions property of the RegionManager that I get doesn't contain any regions even though I have declared two of them in my Shell as follows: regions:RegionManager.RegionName="MainRegion" I can't figure out the