caliburn

Create an instance of ISession per ViewModel

Hello all, here is my problem: I'm building a desktop application, with the following tools: Caliburn Ninject NHibernate All my view models and repositories are instanciated with Ninject. My repositories all need an ISession in their constructor. I'd like to follow ayende's advice concerning the ViewModels: each ViewModel opens a n...

Caliburn - PropertyChanged for child ViewModel

I'm using Caliburn and the MVVM pattern in a WPF application, and am trying to use as many conventions as possible. One issue I'm running into is when I have to wire-up some property-changed notifications on an imported class. Say I have a ViewModel like so: class ViewModelA { private readonly IViewModelB _b; public ViewModel...

MVVM and DI - How to handle Model objects?

I'm using Caliburn and C#, but I feel like this is a generic MVVM/DI question. Let's say I have a view model, NoteViewModel, that is passed a model object called Note. Here is some code: class NoteViewModel : PropertyChangedBase { private readonly Note _note; public NoteViewModel(Note note) { _note = note; } public str...

Can I use Caliburn to bind to RoutedCommands?

What's the best way to use WPF's built-in RoutedCommands with Caliburn? For example, in my shell I have an Edit menu with a Copy item in it attached to the standard command found in ApplicationCommands: <Menu> <MenuItem Header="Edit"> <MenuItem Header="Copy" Command="ApplicationCommands.Copy" /> </Menu...

Caliburn - Exception handling and Rescue

I'm using C# and Caliburn. Is there a global way to catch all exceptions in all view models? What about when there is some kind of exception during import from a DI/IoC container? I basically want to display a message box when this occurs. The RescueAttribute looks to me like it would have to be put on every single view model class...

binding to my current presenter in caliburn without binding convention

in caliburn when i work with binding convention, and name a content control "CurrentPresenter" the framework automagically bind to the vm and locate the relevant view. if i do this binding manually the view is not located.. how might i achieve this ability without the binding convention (my view is a user control) ...

Problem starting with Caliburn Micro

i am starting to learn MVVM, and i decided to choose Caliburn Micro to try it out. i am just at the building part (or before that even). i am opening the project. 1st i got an error saying i need to install some silverlight stuff. installed them. now i just get One or more projects in the solution were not loaded correctly. // output ...

Can't find System.ComponentModel.Composition with .NET Framework 4 installed

i think this sounds like a stupid question. i am starting with caliburn micro: customizing the bootstraper. i have .NET Framework 4 installed, VS2010. but when i try to add a using, there is intellisense that tells me i have System.ComponentModel.Design but no Composition or any of using System.ComponentModel.Composition; using System.C...

Caliburn re-run filter

In caliburn, i have view with button. Button action is filtered by action filter. On view is textbox. When i change textbox content, i want to rerun action filter, how to perform that? ...

Need comparison of MVVM / WPF / Silverlight Toolkits

I'm looking for a good article that compares MVVM Light, Caliburn Micro, Prism, and any other Silverlight / WPF / WP7 frameworks out there. I've seen some good articles on them individually, but nothing that really pits them against one another. Any suggestions? ...

caliburn a viable silverlight framework for large development?

I have been looking at some frameworks for a very large project like 200+ pages with 50+ tables etc., to develop in silverlight. Is there a best practices or suggestion of framework for developing such a large application? Hopefully it will be multiple technologies that make up the final application and interested to know your opinions o...

Silverlight, Caliburn, Actions and DataGrids

Anyone know of good code examples of the Caliburn or Caliburn Micro framework example that illustrate routing Actions with DataGrid items? ...

Move views from one region to another in caliburn

I need to move views from one content control to another, I have no problems with shutdown the views in one control take the view models to the other presentermanager but how can I set the view to be there also? I don't want the views to be created again. ...

Should I register ViewModels in Container?

Should I register ViewModels in Container and resolve from there? Benefits: I can perform some actions when view model is activated Container will inject dependencies for me ??? Drawbacks: ViewModel lifetime management can be tricky: if I make ViewModel singleton then I can't instantiate several controls of the same type if I mak...

Caliburn.Micro and WebServiceResult

I'm looking for the correct version of this class for Caliburn.Micro public class WebServiceResult : IResult where T : new() The above signature is from the ContactManager example in the full Caliburn framework. It does not cut and paste directly into a Micro-based project. There are too many missing classes to use this directly. Thoug...

Binding SelectionChanged to ViewModel using Caliburn.Micro

We've using Caliburn.Micro on a new Silverlight project and everythings working great. The inbuilt conventions bind buttons click events to the viewModel, but I'm not sure what the best way to handle the selectionChanged event on datagrids and comboboxes is. At the moment, I'm binding to the selected item and calling custom logic, but I...

How to bind silverlight datagrid combo box itemSource to viewModel

We're using Caliburn.Micro/Silverlight 4 and life is good. I'm trying to bind a combobox's itemsSource to a viewModel, but this doesn't seem possible since the combobox is already bound to its own row's dataItem. The logic which fills the combo changes with other data on the screen so I can't really use a static list like I've been usi...