Questions tagged [caliburn.micro]

Use this tag for questions related to using Caliburn.Micro framework, troubleshooting issues, and discussing best practices in MVVM development.

Caliburn.Micro is a lightweight MVVM (Model-View-ViewModel) framework for WPF, Silverlight, and UWP platforms. It follows convention over configuration, making it easier to build maintainable and testable applications.

2062 questions
12
votes
1 answer

Convention in Caliburn.Micro for radio buttons

I find working with radiobuttons in WPF/MVVM as a slightly annoying experience. The "go-to" answer for removing annoyances in WPF is looking for a solution in Caliburn.Micro or one of the recipes or example implementations like CoProject. But I can…
OH Gravalid
  • 168
  • 1
  • 7
12
votes
3 answers

OnInitialize and OnActivate are not called on child View Models

I expected that child View Models inheriting from Screen would participate in the Parent Screen's life-cycle. However, it appears this is not the case. For example: public class ParentViewModel : Screen { public ChildViewModel Child { get; set;…
JulianM
  • 1,072
  • 10
  • 19
12
votes
1 answer

Reactive Extensions for .NET (Rx) in WPF - MVVM

I am using Reactive extensions for NET (Rx) with Caliburn.Micro in my WPF app. I'm trying to port my WPF app to use an MVVM architecture and I need to monitor changes in the Text property of a TextBox control. If the last change of the Text property…
user481758
12
votes
1 answer

Bind a Command to a Button inside a ListView with Caliburn.Micro

I'm trying to create something like a MDI tabbed Interface so I have a navigation pane (a Listbox) on the left, and a ContentPresenter on the right. I have a ShellViewModel that has a BindableCollection on it called AvailAbleScreens and I managed…
Tigraine
  • 23,358
  • 11
  • 65
  • 110
12
votes
4 answers

WPF + Caliburn Micro: how to catch Window Close event?

I am new in Caliburn Micro and learn it from this helloworld example. In the example there are only 2 views (.xaml) of type Application and UserControl, and 1 view model. I avoid to use code behind. Therefore I have only view and view model. I want…
MagB
  • 2,131
  • 5
  • 28
  • 54
12
votes
2 answers

Caliburn Micro Constructor Injection Failed

I am learning Caliburn Micro and try to make use of the EventAggregator from the official site. However, I got an exception "No parameterless constructor defined for this object." The message itself is clear but the example doesn't include a…
ender
  • 480
  • 6
  • 23
12
votes
5 answers

Setting the initial window size in Caliburn.micro

I need to set the default size of a view when it first opens, but the view must allow for the user to expand it. (For other reasons I can't use the SizeToContent property in my WindowManager.) This must be a common thing, what is the recommended…
Kelly
  • 6,992
  • 12
  • 59
  • 76
11
votes
5 answers

Getting row information after a doubleclick

I am trying to retrieve row info from a datagrid after a double click event. I have the event setup, but now I just need to setup the function to retrieve the data from the row. XAML:
Josh
  • 657
  • 3
  • 15
  • 30
11
votes
2 answers

Caliburn.Micro can't match View and ViewModel from different assemblies

I just started with Caliburn.Micro. I'm trying to bootstrap my simple sample solution placing the ShellView (usercontrol) in an Test.App assembly, and the ShellViewModel in the Test.ViewModel assembly. What i get is a window with the following text:…
Sergio
  • 2,078
  • 3
  • 24
  • 41
11
votes
6 answers

Cannot find view for ViewModel

I have a wpf application using Caliburn.Micro. I have a view MyView:
David Shochet
  • 5,035
  • 11
  • 57
  • 105
10
votes
4 answers

Silverlight performance with many loaded controls

I have a SL application with many DataGrids (from Silverlight Toolkit), each on its own view. If several DataGrids are opened, changing between views (TabItems, for example) takes a long time (few seconds) and it freezes the whole application (UI…
gius
  • 9,289
  • 3
  • 33
  • 62
10
votes
4 answers

How can I bind key gestures in Caliburn.Micro?

How can I get Caliburn.Micro to map a key gesture to an action method on my ViewModel? For example, I want to implement a tabbed interface, and I want my ShellViewModel to have a NewTab method, which the user should to be able to invoke by pressing…
Joe White
  • 94,807
  • 60
  • 220
  • 330
10
votes
2 answers

'System.Threading.Tasks.TaskCanceledException' occurred in WindowsBase.dll when closing application

I have this property in my viewmodel. public bool IsKWH { get { return _isKwh; } set { if (value.Equals(_isKwh)) return; _isKwh = value; NotifyOfPropertyChange(() => IsKWH); } } Sometimes (~1 in 10 times)…
Dean
  • 1,550
  • 2
  • 15
  • 22
10
votes
2 answers

"No target found for method" thrown by Caliburn Message.Attach()

I have a list box for which I am styling ItemContainer to include a context menu. Here is the xaml for the same.