prism

PRISM and WCF - Do they play nice?

Ok, this is a more general "ugly critters in the corner" question. I am planning to start a project on WCF and PRISM. I have been playing around with PRISM some time know, and must say, I like it. Solid foundation for applications with nice possibilities to grow. Now I want to incorporate WCF and build a distributed application, with o...

MEF vs. PRISM. What is the difference? What will be supported in the future?

I have read similiar posts but I it not clear to me. What I want to create is a Silverlight apps with a few tabs/modules that will all be seperate DLLs. I see PRISM has the Shell/Module concepts that seem directed towards doing UI and I find a nice demo (showing how to search digg/twitter). But It sounds like MEF will be included i...

Is Silverlight appropriate for a big LOB application

So I'm at the proof of concept stage for a fairly large LOB application. The application will be deployed to many desktops (200+) in many organisations. It will contain lots of CRUD type screens (around 100), along with some pretty complex processes like invoice generation and financial ledger integration. It will also contain lots of re...

PRISM + Tabs = Pain

I am having difficulty trying to get a very simple scenario working with PRISM 2.0 for WPF. I want the main workarea of my application to be a TabControl. Each time I add a view, I want it to appear as a TabItem on the TabControl. Sounds easy right? My region, which is in my Shell.XAML looks like this: <Controls:TabControl Name="...

Reading from ServiceReferences.ClientConfig in WCF in Silverlight 3 in a dynamically loaded .xap file

I'm using Silverlight 3 Prism (CAB) with WCF When I call a WCF service in a Prism module, I get the same error: "Could not find default endpoint element that references contract 'IMyService' in the service model client configuaration section. This might be because no configuaration file was found for your application or because no end ...

Prism V2 not working with Silverlight 3.0

I am currently doing a silverlight application with Prism v2. But when I am adding the reference dlls two dlls are not recoganised. Microsoft.Practices.ServiceLocation.dll & Microsoft.Practices.Unity.dll Can any one give a solution for this? ...

WPF Binding - There must be a better way than how I'm doing it!

Overview I am using CompositeWPF to create an app using C#. This really should make a difference to the answer as my problem would exist outside of Prism. I have an ItemsControl which is bound to an ObservableCollection containing my ViewModels. This is working fine. In my DataTemplate I have my required controls bound in XAML. One...

Event subscription with prism giving methodaccess exception

Hi, I have an event that I am subscribing to in a View Model. The event subscription is done in the constructor of the view model which is created via unity. What I found is if I subscribe as: showViewAEvent.Subscribe(ShowViewAHasBeenRequested) or showViewAEvent.Subscribe(ShowViewAHasBeenRequested, False) I get the following error: ...

Prism V2: Hosting Shell in WPF/WinForm Application

Hi All, I am trying to make Shell as UserControl in WPF Composite application. I Started by modifying the Quickstart app: "Quickstarts\UI Composition\ViewDiscovery". I made "UIComposition.Desktop.csproj" a UserControl class library with Shell.xaml as UserControl. Created another WPFApplication to host the Shell. Added the following code...

MDI Applications in WPF

I am working on a new .Net WPF project and will most likely be using the PRISM framework. One of the requirements that I have for the application is to have an MDI type user interface. I need a main shell with a header, footer and sidebar regions. The main workarea of the application needs to contain multiple tabs, with one tab for each...

What happened to the prism project linker in Visual Studio 2010?

How do I share files between WPF and Silverlight projects in Visual Studio 2010? ...

How to resolve types registered in other Modules in Prism?

I'm registering few modules in my Prism application using UnityBootstrapper protected override IModuleCatalog GetModuleCatalog() { var catalog = new ModuleCatalog(); catalog .AddModule(typeof(LoginModule)) .AddModule(typeof(AppModule)) .AddModule(typeof(DataTransformationModule), InitializationMode.OnDemand)...

WPF MVVM dialog example

Does anyone have any examples of showing a window dialog using MVVM (Prism)? - for example a configuration settings window when a command is executed. All of the examples I've seen use the mediator pattern which is fine, but they also all have a reference to the view in the view model which is not ideal (we're using DataTemplates) Than...

Integrating Modules with Application in Prism aka CompositeWpf

From MSDN: It is likely that most of the views in your modules will not have to be displayed directly, but only after some action by the user. Depending on the style of application, you may want to use menus, toolbars, or other navigation strategies for your users to access views. In the initialization method of the module, you can a...

Composite Application Framework Equivalent in Java

Just wondering what the opposing framework in Java would be for creating modular GUI applications, with things like event aggregation, etc. I know for Java there isn't a single definitive GUI framework, and so far I've seen the Eclipse RCP and Netbeans Platform, however these don't seem to do these kind of things. I'm a .Net developer ...

What is the best method to load Views dynamically from a Navigation control in Prism

I've implemented navigation through my application using a Menu control which publish an event using EventAggregator on click of menu item. Something like as shown below, this.eventAggregator.GetEvent<ViewRequestedEvent>() .Publish(new BusinessObject.Model.MenuModel { Modu...

Silverlight PRISM getting the rendersize of a region

Hi, I am trying to get the render size of a region via the region manager. The reason for this is each time I add a view to the region I want to make sure it will visually fit, I can get the dimensions of the view I am about to add but I am struggling to find a way of getting the height of the region I am about to add to. Obviously I w...

Why a View is loading very slow for the first time in a Prism composite wpf application

Displaying a View inside a Region is about 5-10 seconds slow for the first time, and UI freezes for that period in my Prism Composite WPF application. In subsequent times View is loaded relatively faster without any UI freezing. View is composed of a Devexpress WPF Grid control and data is fetched from a SQL database. I don't think its a...

Prism's ItemsControl seems to have a xaml parse error. Why?

I am at a loss as to why my Shell.xaml's ItemsControl is causing a parse error. I know the syntax is correct because I copied the Silvelright project files from a working project. Right now my only guess is that ItemsControl is dependent on something else. Here is the relevant xaml line for ItemsControl. <ItemsControl x:Name="Region" ...

WPF , Getting verticalstretch working as expected!

I am trying to make the vertical stretch to work as expected i WPF, but for some reason it only takes the space it needs, and not the space available. First, I am using WPF with C#, and Prism. In the Shell.xaml (main xaml for the application) I have a grid with 2 columns and one row. The idea is to have a side panel and a main app are...