caliburn.micro

ReactiveUI and Caliburn Micro together?

て烟熏妆下的殇ゞ 提交于 2019-12-20 08:11:21
问题 I've been doing some prototype work on a new Silverlight application using Caliburn Micro as our MVVM Framework. The team has generally been happy with it. In order to address some issues with throttling requests to services, it was suggested that I look into ReactiveUI's ReactiveCollections and their implementation of INotifyPropertyChanged. Does anyone have any experience around using the two together? Since they are both primarily MVVM Frameworks, there's a good bit of overlap, so I wonder

ReactiveUI and Caliburn Micro together?

旧巷老猫 提交于 2019-12-20 08:11:20
问题 I've been doing some prototype work on a new Silverlight application using Caliburn Micro as our MVVM Framework. The team has generally been happy with it. In order to address some issues with throttling requests to services, it was suggested that I look into ReactiveUI's ReactiveCollections and their implementation of INotifyPropertyChanged. Does anyone have any experience around using the two together? Since they are both primarily MVVM Frameworks, there's a good bit of overlap, so I wonder

One ViewModel, multiple views

穿精又带淫゛_ 提交于 2019-12-18 12:29:40
问题 I am having a hard time getting multiple views to work against 1 viewmodel. I have read Naming Convention for Multi-View Support without getting much out of it, and have tried countless things in the process. Just to take a simple example. Say I have a ViewModel for People residing in ShellViewModel, which basically contains a list of Person-objects. I want to display them in two different ways in my application. What is the correct way to name the Views in this case, and how do I display

Caliburn.Micro support for PasswordBox?

陌路散爱 提交于 2019-12-18 11:53:21
问题 The Caliburn.Micro home page at http://caliburnmicro.com makes the below claim but I am unable to make CM work with a PasswordBox control using any variation I can think of from that example. Don't see how this would work anyway since the names are not the same case. Does anyone have a CM example that does allow me to get the value of the PasswordBox? Is there a particular version of CM required? I'm running version 1.5.2 of CM. Ideally w/o using Attached Properties but if can work with CM

Caliburn Micro 'Enter' Key Event

那年仲夏 提交于 2019-12-18 10:46:10
问题 I am attempting to bind an event with Caliburn Micro and I am having some issues getting the right messages to the method. I would like to add the ability to press the 'Enter' key after changing the value in a text box and it execute the same method that the button next to is bound to. However, regardless of which key is pressed, I get the following exceptions: A first chance exception of type 'System.InvalidCastException' occurred in MyApp.exe A first chance exception of type 'System

Add multiple views inside a view using WPF and Caliburn.Micro

江枫思渺然 提交于 2019-12-18 10:44:42
问题 I'm trying to learn using Caliburn.Micro with WPF. How can I add multiple views inside a view? <Window x:Class="ProjectName.Views.MainView" ...> <Grid> <views:MyControlView /> </Grid> </Window> Another view, with viewmodel: MyControlViewModel <UserControl x:Class="ProjectName.Views.MyControlView" ...> <Grid> ... </Grid> </UserControl> If i just add the view, it won't detect that it has a viewmodel with the appropriate name. How can i bind this to it? I have tried out with different

WPF Caliburn.Micro and TabControl with UserControls issue

若如初见. 提交于 2019-12-18 10:29:23
问题 I'm pretty sure this has been answered somewhere, but I can't seem to find it for the life of me. I'm trying to use a TabControl to switch between UserControls (each tab is different, so not using Items) Here's the breakdown: I have my mainview, and 3 usercontrols. Mainview has a tab control - each tab should display a different user control. I could easily just set the tabcontrol contect to the usercontrol using But then it isn't bound to the viewmodel, only the view. So I'm using Conductor

Global handling exception in WPF app with Caliburn.Micro

荒凉一梦 提交于 2019-12-18 04:59:10
问题 Hi I try implement solution from this site im my WPF app for global exception handling. http://www.codeproject.com/Articles/90866/Unhandled-Exception-Handler-For-WPF-Applications.aspx I use Caliburn Micro as MVVM framework. Service I have in external assembly and it is injected in view model class with MEF. Here is my implementation for global exception handling in WPF app. App.xaml DispatcherUnhandledException="Application_DispatcherUnhandledException" Startup="Application_Startup" App class

Bind a Property that is outside of an Itemscontrol in XAML

给你一囗甜甜゛ 提交于 2019-12-18 02:49:12
问题 I am trying to bind a Property that is outside of an Itemscontrol. However that doesn't seem to work. It seems that in ItemsControl, DataTemplate it refers to what is inside of the collection and not outside of it. I have tried with RelativeResource and Referred to AncestorType for the ViewModel. Code (VM): public class Test { public string GetThis {get{return "123";} set{}} public List<string> IterateProperty {get; set;} } XAML (View): <ItemsControl ItemsSource="{Binding Path=IterateProperty

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

て烟熏妆下的殇ゞ 提交于 2019-12-17 18:58:11
问题 I have a list box for which I am styling ItemContainer to include a context menu. Here is the xaml for the same. <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> ... <Setter Property="ContextMenu"> <Setter.Value> <ContextMenu> <MenuItem Header="Remove Group" cal:Message.Attach="DeleteGroup"/> </ContextMenu> </Setter.Value> </Setter> </Style> I have coded the target method in ViewModel as given below. public void DeleteGroup() { //ToDo ... } The ViewModel is set as the