compositewpf

Do you use Microsoft's Prism (CompositeWPF) in commercial development?

Are you using or going to use Prism? I had experience with Composite Application block (composite UI for WinForms) and can say that it's an overengineered hard to use framework. I've taken a look at Prism and it seems to be better designed e.g. simple to use and fast. What do you think? ...

WPF Application fails on startup with TypeInitializationException

I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices "Composite Application Guidance for WPF". I've followed their instructions however my WPF application fails immediately with a "TypeInitializationException". The InnerException property reveals that "The type initializer for...

Does CompositeWPF support multiple windows/shells?

I'm looking at using CompositeWPF (http://www.codeplex.com/CompositeWPF) - aka Prism, to build an application I am working on. The application isn't a traditional LOB application, however it does present data and state information to the user. One thing which I am unsure of is if CompositeWPF supports more than one Window or Shell. I w...

How can I activate/deactivate a module's view after its initialization?

This relates to Composite Application Guidance for WPF, or Prism. I have one "MainRegion" in my shell. My various modules will be loaded into this main region. I can populate a list of available modules in a menu and select them to load. On the click of the menu I do: var module = moduleEnumerator.GetModule(moduleName); moduleLoader.In...

Module Loading with ModuleManager in Prism

This question was also posted on Prism's site on Codeplex. I am a little lost on loading modules on demand, and I hope you guys can enlighten me. I am using v2 #7. Here's what I want to accomplish: 1) I have 2 regions - one for buttons that instantiate the modules (MenuRegion), another to show the modules (MainRegion). Only one mo...

Same module multiple times as TabItems

Here's my scenario: 1) Shell with 1 TabControl and 1 region called MenuRegion 2) MenuRegion contains Buttons for each of the available modules (applications). I want to achieve the following using Prism (Composite Application Library for WPF): When one of the buttons is clicked, I need to add a new TabItem to the TabControl, and load an...

CompositeWPF: EventAggregator - when to use?

Hi, I've been looking in to the Composite Application Library, and it's great, but I'm having trouble deciding when to use the EventAggregator... or rather - when NOT to use it. Looking at the StockTraderRI example, I'm even more confused. They are using the EventAggregator in some cases, and "classic" events in other cases (in for exa...

Prism (Silverlight)

either I'm missing something or the (patterns & practices Composite Application Guidance for WPF and Silverlight) doesn't come with any templates or "guidance packages" to generate code. could someone confirm if I didn't install it properly or it is totally different from SCSF and doesn't have any codegen in it? ...

Composite Guidance for WPF : MVVM vs MVP.

Hi, I am confused. Maybe you can help me :) I have been following the guidance of CAG and found the MVP pattern very natural to me. Suppose I have a UI-ready Model (for example : implements INotifyPropertyChanged), I use the presenter to bind this Model to a view (presenter knows an interface of the view), keeping my Code-Behind as sma...

Composite WPF Visual Studio Style Interface

I am looking to design an interface in the style of the Visual Studio interface with WPF Composite Application Guidance (PRISM). I would like to have a tree on the left with the different views that can be opened. When some one clicks on a node in the tree, have the view open on the right in a tab. If the view is already opened in the ta...

Prism2 Region Adapter for AvalonDock's DocumentPane and DockingPane?

Hi. Does anyone have sample code on how to create a Region Adapter for AvalonDock's DocumentPane and DockingPane? ...

Serial number Column in ListView

Hi, Currently I am using a sortable listview Which is bind to DataTable, I have a Serial number column which is auto incremented and displayed, Our requirement is when we sort other columns this column shall remain constant and show row numbers in series as in Excel. I am planning to have a stack panel beside listview and adding Textb...

Silverlight And Prism - Lazy loading a dll outside a xap file?

In the modularity quick start (http://msdn.microsoft.com/en-us/library/dd490828.aspx) there is enough details on delay loading a type from an assembly in a xap file. Is there any way an assembly can be delay loaded using Prism for Silverlight, if it is not embedded in the xap? ...

How does Prism compare with Caliburn?

Looking at the Prism and Caliburn frameworks as a WPF newbie, what are their relative strengths and weaknesses? ...

Composite WPF (Prism) module resource data templates

Given that I have a shell application and a couple of separate module projects using Microsoft CompoisteWPF (Prism v2)... On receiving a command, a module creates a new ViewModel and adds it to a region through the region manager. var viewModel = _container.Resolve<IMyViewModel>(); _regionManager.Regions[RegionNames.ShellMainRegion].Ad...

How fine grained should modules in Prism be?

Hey girls and guys! I am currently working on a project of mine using Prism (the Composite Application Library/Guidance). The application will be a specialized MSPaint-like application for basketball (predefined objects for balls, players etc.). Now I am wondering how to go about organizing my application into Prism modules. Especiall...

Composite Application Block Region injection slow

Im building a wpf app with the composite application block ("prism") V2, and Im having an issue where a user control that is injected by a module is very slow in rendering. The user control contains a datagrid with some 2000 rows in it and there is considerable lag in the control rendering to the screen. Initially I thought the slowness ...

Share context data with all children of a control

I need all children of a view to know a piece of contextual information (the person they need to show). I also need the approach to be compatible with MVVM. I tried to do this with RegionContext in my Prism application. Here's my approach and problems: I have a TabControl that I use View Injection to populate with views so that I can...

update ListBox when updating or deltying

hi There, im creating an composite application with wpf and CAl,my problem si that my listbox doesn't update it's data when i updated thme even if it's so in the database,here is the code: <CollectionViewSource x:Key="cvs" Source="{Binding Path=Etudiants,Mode=OneWay}"> <CollectionViewSource.SortDescriptions> <s...

Prism and AnimatedTabControl

I would love to use this, but cannot for the life of me figure out how to bind items to it. I would like to see a simple example, something like Shell.xaml <Controls:AnimatedTabControl x:Name="TestTab" SelectedIndex="0" VerticalAlignment="Stretch" cal:RegionManager.RegionName="{x:Static inf:RegionNames.TestRegion}" ...