compositewpf

Caliburn and prism samples

Are there any sample applications avaliable that make use of both caliburn and prism? I know there are blogs that talk about it but I would like to wade into some code and see how it all fits together. http://caliburn.codeplex.com http://compositewpf.codeplex.com/ ...

How do I load a module catalog from a database in Prism?

I'm using Prism in my WPF application and up to now, I've been loading the modules via var moduleCatalog = new ConfigurationModuleCatalog();. I'd like to get the module catalog from a database. The Prism documentation indicates that this is possible, but it doesn't go into any details. Has anyone done this and can provide some guidance?...

wpf prism (CAL) - Closing Window in Popup Region when the ViewModel knows nothing of the View

Hi We have a Region in the Window tag of our shell, adding things to this region pops out another Window. <Window x:Class="GTS.GRS.N3.Shell.Shell1" --removed namespace references for clarity cal:RegionManager.RegionName="{x:Static Constants:RegionNames.WindowRegion}"> We're adding ViewModels to the Region Manager and then the ...

WPF with MVVM and Prismv2 - Event Bubbling?

What is the best way to get an event from a child or grandchild module up to the parent Shell? For instance, if I have a view in a module that is actually 2 levels away from the Shell, and I have a Window behavior. Is the eventaggregator really the best way to do this? it seems like overkill. I just want my MainShell to watch for a cha...

Master Detail across separate views in WPF

I can get the master-detail scenario to work just fine if I keep the master and details together in the same view. However I want to be able to tailor the details presentation based on user security. Therefore I moved the detail section to a separate view using the same viewmodel as a backend. Now the details dont update properly when a ...

Smart Client Guidance = Prism? Vs 2010

Hi there, I have found this link http://smartclient.codeplex.com/ which has some updates for vs 2010 .... I don't know but i always seem to get confused i.e. lack of documentation etc..... but is this the same as Prism?? If not can anyone tell me where the differences are... It appears to be a link for designing smartclient so i pr...

Where can I find latest (beta/ctp maybe) version of Prism and/or any quickstart for composite WPF applications with Visual Studio 2010?

All I've found about composite applications is for VS 2008. How do I start with composite WPF applications with VS 2010? Can you recommend a good intro for creating a composite WPF application from scratch with Visual Studio 2010? ...

CompositeWPF - MVVM - How to change the focus and tabnavigation to an element in view

Using CompositeWPF I have the following setup: <Window x:Name="MainWindow"> <View x:Name="MainView"> <View x:Name="CurrentSelectedView"/> </View> </Window> MainView is a view containing a menu structure. CurrentSelectedView changes depending on the menu selection you make. For this example lets assume the CurrentSelectedView c...

Specified Visual is already a child of another Visual or the root of a CompositionTarget.

WPF Visualizer Visual Tree canvas canvas.Children.Add poly |> ignore Specified Visual is 1) already a child of another Visual or 2) the root of a CompositionTarget. Don't think it's 1), not sure what 2) is? Using Visual Studio 2010, F# 2.0, WPF, ... not XAML ...

WPF Composite Shape

Hi, I have created a somewhat complex shape using basic shapes. I would like to use multiples of this on a canvas, created programmatically in code behind. I have thought about creating a UserControl, but what's the best way to encapsulate this composite shape? ...

Raising events from usercontrol to its parent Usercontrol which are added with IRegionManager PRISM

Sorry for weird title, actually i can only explain my question but cannot put in a few words in the title. I am developing WPF Composite application with PRISM approach. I have got a common WPF usercontrol which is gonna be used by all other usercontrol, i.e. usecontrol within a usercontrol. The common usercontrol has got a butto...

With WPF Prism can you prevent two modules from trying to use the same region simultaneously?

Here is the overview of what I am trying to do. I have a region in the shell that is used for application modal dialogs. When a module wants to launch an application modal dialog it loads a custom Lightbox control into the region and fills it with the content I want to display (warning, wizards, etc). I have the region defined in the s...

WPF c# Subscribe/Publish events mechanism using reflection - right or wrong?

I want to achieve a simple Subscribe/Publish mechanism within a WPF application so i can subscribe to events from different places in the application specifying the event type and handler method, and then when publishing the event, my mechanism will call all the subscribed methods on the subscribers. I cannot use the RoutedEvent as I wan...

Prism, Regions, Magic strings and refactoring : am I missing something here ?

Hello, chaps. To build a composite application view in my application, with different regions, untill now, I've always used content presenter and used DataBinding to set its content. If I wanted to change its content, I would just have to use an event aggregator, publish a ViewZoneChangedEvent, subscribe to it in the "shell" window, an...

Why would adding an x:Name attribute to a user control cause a compilation error?

I really need some more ideas as to what's causing this, currently it's driving me up the wall. I have a Xaml user control which contains another user control like this : <UserControl x:Class="MyModule.View.MainView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2...

WPF Datagrid group expander text - how to bind ??

I am using a datagrid with a combox that should change the grouping field. I am using the following xaml to define the general grouping template : <DataGrid.GroupStyle> <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}"> <Setter Property="Template"> ...

how to disable whole view in wpf

I am working on a WPF application in MVVM pattern. My application consists of 2 modules. The first Module consists of a View. In bottom row of that View I am adding another Region in which another module loads its own View. Issue: whenever user makes any changes in the upper view, the Lower view (loaded by another module) should gets k...

What should I use in Prism- MEF or Unity?

Found several good(related) questions here and here but all are nearly a year old. I will like to know in the current context of Prism development what is better or at least scenario where each is better. ...

How to show a login screen before loading the actual shell in Prism framework

In my application I want to show a login screen first, if the login is successful only then I want to show what is known as a Shell. How would you structure a simple application that first authenticates the user via some login screen and then opens up the main window that acts as container for further module? ...

WPF - binding integer list to combobox

Hi, I want to bind a List to a WPF combobox in xaml. Wondering what is the simplest way to do it. (The reason behind is I want to maintain the years as integer rather than doing the type conversion from string to int. I get a list of years(2009,2010,2011) from the DB and want to be able to bind this to the combo and get the selected ...