Quantcast
Channel: patterns & practices: Prism
Viewing all 1878 articles
Browse latest View live

Reviewed: Prism 4.2 for .NET 4.5 (三月 19, 2014)

$
0
0
Rated 5 Stars (out of 5) - I'll update my software to prism 4.2 When will the stable version release?

Reviewed: Prism 4.2 for .NET 4.5 (Mar 20, 2014)

$
0
0
Rated 5 Stars (out of 5) - I tried to download this beta and compile the Prism library on Windows 7 with Visual Studio Express for Desktop, but the Prism.Mvvm and Prism.SharedInterfaces was reported as not compatible types.

New Post: Starting a PRISM WPF application from another application

$
0
0
Hi,

I struck with the similar problem friends. Please help me.
I have a Wpf prism application. I made it as a Class library so that I am able to generate a dll for this Prism application.
Now I want to use this DLL in another Windows Application, and launch that application from windows form.

As we know that the launching process of Prism App is different.

How can i launch Prism App (Shell or Home Screen) from Windows form...?

Thanks,
Srini.

New Post: Making WPF PRISM APP as DLL, and using this DLL launch PRISM APP from WINDOWS FORM...?

$
0
0
Hi,


I have a Wpf prism application. I made it as a Class library so that I am able to generate a dll for this Prism application.
Now I want to use this DLL in another Windows Application, and launch that application from windows form.

As we know that the launching process of Prism App is different.

How can i launch Prism App (Shell or Home Screen) from Windows form...?

Thanks,
Srini.

New Post: Starting a PRISM WPF application from another application

$
0
0
Hi Srini,

I don't completely understand the scenario you are describing. What would be the reason that you need a Prism App gets executed into a Windows Form application.
Are you planning to perform an scheduler for running the Prism App, or would you run the Prism app as an Application's Plugin for example?

It could be useful to know how the Windows Form application would run and why it would be necessary to embedded the Prism App.

Regards.

Gabriel Ostrowsky.
https://blogs.southworks.net/gostrowsky

New Post: Making WPF PRISM APP as DLL, and using this DLL launch PRISM APP from WINDOWS FORM...?

New Post: Starting a PRISM WPF application from another application

$
0
0
Hi Gabriel,

Thanks for your reply.

Basically the scenario is, We already have a one old Windows Application at our client location. Now we need to put one button on the existing winforms and then from there i need to laucnh my PRISM APP.

In my project's initial stage, I thought its just like a separate executable. So that I developed my application in that way.


But recently i came to know that, if it is a seaprate executable, I need to do lot of work to move to QC environment .
(Because of my work Environment's standards and policies)

If i made it as a DLL it will easy to maintain in the QC Environment. So that the management decided that it should be as a DLL.

If my Prism APP is an executable i can launch this executable by using PROCESS concept from my Win Form. i have already done with this.

But Now, my Prism application is a DLL. So how can i launch my Prism App on button click event of WIN FORM now...?

I hope you can understand the scenario. Please be patient with me. -:)

Thanks,
Srini

New Post: Prism and Windows Store

$
0
0
I've read some very old threads on the subject without much hope. I am ready to start porting my applications from WPF to Windows Store. It appears that MEF 2 is alive and well, so I'll be using that for my IOC. However, I'm about to dump my considerable investment in Prism down the toilet. I love dynamically constructing visual regions from view models but it doesn't appear to me that there's any future in Prism.

Would someone kindly report on the viability of Prism for building Metro interfaces. What have the P&P people been doing since 2012?

Created Unassigned: directory name containing # char causes FileNotFoundException exception. [10566]

$
0
0
In method MefFileModuleTypeLoader.LoadModuleType call to moduleInfo.Ref returns
string "C:/Users/Yakov/Documents/C%23/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
instead of correct one "C:/Users/Yakov/Documents/C#/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"

Directory name (C#) containing # char causes exception:

InnerException: System.IO.FileNotFoundException
HResult=-2147024893
Message=Could not load file or assembly 'ModularityWithMef.Desktop.ModuleE.dll' or one of its dependencies. The system cannot find the path specified.
Source=mscorlib
FileName=ModularityWithMef.Desktop.ModuleE.dll
FusionLog=""
StackTrace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo) in c:\Users\Yakov\Documents\C#\Prism45\Source\PrismLibrary\Desktop\Prism.MefExtensions\Modularity\MefFileModuleTypeLoader.Desktop.cs:line 112
InnerException: System.IO.DirectoryNotFoundException
HResult=-2147024893
Message=The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
InnerException:

Commented Unassigned: directory name containing # char causes FileNotFoundException exception. [10566]

$
0
0
In method MefFileModuleTypeLoader.LoadModuleType call to moduleInfo.Ref returns
string "C:/Users/Yakov/Documents/C%23/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
instead of correct one "C:/Users/Yakov/Documents/C#/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"

Directory name (C#) containing # char causes exception:

InnerException: System.IO.FileNotFoundException
HResult=-2147024893
Message=Could not load file or assembly 'ModularityWithMef.Desktop.ModuleE.dll' or one of its dependencies. The system cannot find the path specified.
Source=mscorlib
FileName=ModularityWithMef.Desktop.ModuleE.dll
FusionLog=""
StackTrace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo) in c:\Users\Yakov\Documents\C#\Prism45\Source\PrismLibrary\Desktop\Prism.MefExtensions\Modularity\MefFileModuleTypeLoader.Desktop.cs:line 112
InnerException: System.IO.DirectoryNotFoundException
HResult=-2147024893
Message=The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
InnerException:
Comments: ** Comment from web user: wolga2 **

This bug has been reported already in 2011. See "Error when place Modularity sample to directory with # in name".

New Post: Prism and Windows Store

$
0
0
DRAirey1,

There is a version of Prism for Windows Store apps that supports MVVM plus more that is available at http://aka.ms/prism-winrt-doc. Below I provide a brief description of the release. We are about to publish an update to Prism that will allow you to share view models between platforms. We will update the Prism for Windows Runtime code base to use the PCL version of the MVVM code later this spring.

Prism for Windows Runtime does not support regions or modularity because Windows Store apps are meant to be smaller and task based. All assemblies must be identified in the APPX when the app is published to the store so there is not an option to add or update an assembly without republishing the entire APPX.

In the AdventureWorks Shopper RI we demonstrate UI composition using a hierarchy of view models. An example of this is the CheckoutHubPageViewModel which contains the following child view models:
  • ShippingAddressViewModel
  • BillingAddressViewModel
  • PaymentMethodViewModel
Prism for the Windows Runtime Description
  • This guide helps developers who want to create a Windows Store business app using C#, XAML, the Windows Runtime, and development patterns such as Model-View-ViewModel and event aggregation. The guide comes with source code for Prism for the Windows Runtime, source code for the AdventureWorks Shopper product catalog and shopping cart reference implementation, and documentation. The documentation provides guidance on how to implement MVVM with navigation and app lifecycle management, validation, manage application data, implement controls, accessible and localizable pages, touch, search, tiles, and tile notifications. It also provides guidance on testing your app and tuning its performance
Let me know if this helps and if there is more information I can provide. I'm also interested in hearing more about your requirements for Windows Store apps so we can consider it for our next update of Prism for Windows Runtime.

Thanks.

Blaine Wastell

Created Unassigned: Cannot Compile Prism 4.2 as well [10568]

$
0
0
When I try to compile Prism 4.2 I've got following error:

Error 1 The remote server returned an error: (407) Proxy Authentication Required. Prism.TestSupport

Via TCPView i can see a connection trial on local port 6999 (is that a TFS port?):

[System Process] 0 TCP 127.0.0.1 6999 127.0.0.1 57877 TIME_WAIT

Any idea ?

Thanx
Peter

Commented Unassigned: Cannot Compile Prism 4.2 as well [10568]

$
0
0
When I try to compile Prism 4.2 I get following error:

Error 1 The remote server returned an error: (407) Proxy Authentication Required. Prism.TestSupport

Via TCPView i can see a connection trial on local port 6999 (is that a TFS port?):

[System Process] 0 TCP 127.0.0.1 6999 127.0.0.1 57877 TIME_WAIT

Any idea ?

Thanx
Peter
Comments: ** Comment from web user: GOstrowsky **

Hi Peter,

I tried to reproduced the issue you mentioned above, but unfortunately I wasn't able to face it. The __TCP__ port you specify does not either appear from my side.

Based on my understanding, the solution would only try to connect to Nuget site in order to install the PubSubEvent package.

It would be helpful for a deeper troubleshooting if you could tell us the __Visual Studio__ and __OS__ versions you would be working on. Also, I would appreciate if you could describe the repro steps you performed for building the __Prism__ Library.

On the other hand, would your environment be configured with some internet custom settings?

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky

New Post: Starting a PRISM WPF application from another application

$
0
0
Hello Srini,


It seems to be a known issue on this scenario of loading a Prism App from Windows Form. You may find useful the following discussion site for troubleshooting the known issue:

Then, after changing the RegionManager's IsInDesignMode() method from the Prism Library, you would need to call the Bootstrapper's Run() method from your ButtonClick event handler. The Bootstrapper would create the Prism Shell instance and load the Container and every Module of the App. Therefore, you would just need to show the Shell from the Bootstrapper's InitializeShell() as follows:
protectedoverridevoid InitializeShell()
{
     base.InitializeShell();
     ((Window)this.Shell).Show();
}
I hope this helped,
Regards.

Gabriel Ostrowsky
http://blogs.southworks.net/gostrowsky

Commented Unassigned: Cannot Compile Prism 4.2 as well [10568]

$
0
0
When I try to compile Prism 4.2 I get following error:

Error 1 The remote server returned an error: (407) Proxy Authentication Required. Prism.TestSupport

Via TCPView i can see a connection trial on local port 6999 (is that a TFS port?):

[System Process] 0 TCP 127.0.0.1 6999 127.0.0.1 57877 TIME_WAIT

Any idea ?

Thanx
Peter
Comments: ** Comment from web user: keris **

Thanx for focus on nuget. Removing the .nuget folder does the trick.
I've installed the missing packages manually by PackageManager ...

Solved for me
Peter


New Post: Persistent Data on Events

$
0
0
Damian,

Perfect. That's exactly what I was looking for.
Should be incorporated into the standard library. This is a very useful function during initialization. Thanks.

Don

New Post: Navigation to Dynamic Modules

$
0
0
In WPF and Silverlight, if you provide a URI that includes a satellite assembly, the navigation subsystem will load that module and then navigate to it. For example:
Navigate("pack://application:,,,/MyAssembly;/MyFrame?path=\Root");
Will find MyAssembly, load it, then find the type "MyFrame" in that assembly and load it as the content.

I've found no such analog in Prism 4.1. Navigation appears to work only with pre-loaded types. I've had to roll my own dynamic module loader (which was fairly easy to do with the Prism plumbing), but I'm left wondering: why isn't this baked into Prism?

New Post: Keep open screens updated - WPF/Prism/MEF/MVVM/EF

$
0
0
Hi,

In our WPF app implemented using Prism and MEF, UI layer is MVVM based and EF has been used in DAL.

When the data changes on one screen, we want to ensure that all open screens display the updated data. E.g. if we add a new customer in Add Customer screen, then the already open Search Customer should be refreshed with the newly added customer.

Currently we are using the EventAggregator and Publisher-Subscriber pattern for refreshing the data. The ViewModels (in UI layer) and the DbContext (in DAL) are disconnected. The ViewModels get the updated data by calling the methods in DAL.

Is there another way of ensuring that data is up-to-date across the application? I heard we can have one DbContext for the whole application to ensure this. Is that the right way to go when the data can be huge?

Please advise.
Thanks.

New Post: Prism and Windows Store

$
0
0
Blaine,

I posted a much longer reply which seems to have been expunged somehow. My point is that I am trying to figure out a strategy for both my mobile applications and my enterprise applications. Like every other engineering who's looking into the future, I want to maximize the amount of code that I can share between them. I have been following all the Best Practices guidelines I can because I felt that they were solid engineering concepts. However, all the investment I made in loosely couple modules seems to have been misplaced. I realize this is not the P&P groups fault, but I'm left wondering if there's a place for Prism going forward. If WindowsRT is the future of Windows, then I need to seriously examine the presumption of composite applications as a Best Practice.

Any thoughts you have on the subject would be welcome. I suspect the P&P group is wrestling with the same issues.

Don

New Post: Keep open screens updated - WPF/Prism/MEF/MVVM/EF

$
0
0
Hi,

The approach you mentioned of using EventAggregator would be correct. However, I don't completely understand what do you refer by having the ViewModels and DbContext disconnected when the ViewModels get the data by calling the DbContext's methods.

Anyway, regarding data consistency, the use of one only DbContext with a big load of data would depend on the complexity for managing the DB and maintaining its consistency. You should try to keep coherence in DB's data and try to avoid extra filters on information requests.

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Viewing all 1878 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>