caliburn.micro

ComponentOne's FlexGrid Background Color

天涯浪子 提交于 2019-12-08 07:37:51
问题 I have a WPF Caliburn.Micro application. I used to have there a DataGrid, and here is a part of the code: <DataGrid x:Name="FirstEntries" Grid.Row="5" AutoGenerateColumns="False" BaseControls:DataGridExtension.Columns="{Binding FirstEntryGridColumns}" CanUserAddRows="False" IsReadOnly="True" SelectedItem="{Binding Path=SelectedFirstEntry}"> <DataGrid.Resources> <conv:StatusToBackgroundColorConverter x:Key="StatusToBackgroundColor"/> </DataGrid.Resources> <DataGrid.ItemContainerStyle> <Style

Caliburn.Micro does not have “Bootstrapper” in a namespace in App.xaml

谁说我不能喝 提交于 2019-12-08 07:06:58
问题 EDIT: It seems that I finally made it to work. I asked an author of that post which I referred before and he said that it's a known issue. He also gave mi a workaround (in the comment below the post), so I consider this question as closed. But thanks to all of you for time spent with my problems :) I'm trying to learn MVVM with Caliburn Micro framework, but I got problems from the beginning. I'm following this tutorial and I got such a code in App.xaml: <Application x:Class="Caliburn.App"

Displaying SplashScreen Causing InvalidOperationException

心不动则不痛 提交于 2019-12-08 04:48:43
问题 Problem I have a MVVM application that uses Caliburn.Micro as the MVVM framework and MEF for "dependency injection" (in quotes as I am aware it is not strictly an DI container). The composition process of this large application is starting to take increasingly large amounts of time based on the number of compositions MEF is undertaking during the launch of the application and as such I want to use an animated splash screen. Below I will outline my current code that shows the splash screen on

send parameter from view-model to constructor of another view-model

旧时模样 提交于 2019-12-08 04:07:27
问题 I use caliburn micro and MEF in wpf and I have this problem. I create shell-view-model: public interface IShellViewModel { void ShowLogOnView(); void ShowMessengerView(PokecAccount account); } [Export(typeof(IShellViewModel))] public class ShellViewModel : Conductor<IScreen>, IShellViewModel { public ShellViewModel() { ShowLogOnView(); } public void ShowLogOnView() { ActivateItem(IoC.Get<LogOnViewModel>()); } public void ShowMessengerView(PokecAccount account) { //send to constructor of

ViewModels references in ShellViewModel Caliburn.Micro

孤街醉人 提交于 2019-12-08 03:47:11
问题 In this thread : Can anybody provide any simple working example of the Conductor<T>.Collection.AllActive usage? I've had part of an answer but I'm still a but confused. I would simply like to reference all my view models into my ShellViewModel to be able to open/close ContentControls, but without injecting all of them in the constructor. In the answer, it is suggested to inject an interface in the constructor of the ShellViewModel. If I do that, do I have to inject all my ViewModels in a

How can i update items from ListView with Caliburn.Micro in C#?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 02:56:35
问题 I wrote a simple program with MVVM (C#) and XAML using Caliburn.Micro library, But some actions didn't work: update an item content get selected item get specific item move up and move down records enable or disable buttons when Add button clicked Any help would be appreciated. My GUI code: // Views\MainView.xaml <Window x:Class="ListBox_CaliburnMicro.MainView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal=

Caliburn.Micro and event aggregator -unwanted call handle method

一曲冷凌霜 提交于 2019-12-08 02:32:28
问题 I have one problem with publish/handle messages between 2 screens. My scenario is: Messenger screen, is it master screen, publish on chat screens, they are slave screens. Messenger view model handle with messages from server. Chat screen can publishes messages on messenger screen. And messanger view model send this message on server. Messenger class look like this: [Export("MessengerScreen", typeof(IMessengerViewModel))] public class MessengerViewModel : Screen, IMessengerViewModel,

Error on guard clause with Caliburn.Micro

牧云@^-^@ 提交于 2019-12-07 21:15:21
问题 I am trying to implement so guard handling with Caliburn.Micro but I am getting an invalid cast exception when the application runs. The Property: public Account UserAccount { get { return account; } set { account = value; NotifyOfPropertyChange(() => UserAccount); NotifyOfPropertyChange(() => CanSaveAndNavigateToComposeView()); } } The Method: public void SaveAndNavigateToComposeView() { CommitAccountToStorage(); navigationService.UriFor<ComposeViewModel>().Navigate(); } The Guard: public

WPF Caliburn Micro CanExecute when property of binded object changes

丶灬走出姿态 提交于 2019-12-07 17:09:03
问题 I have the problem, that my CanSave method doesn't get called, when I change a binded property. View The View contains of some Labels and TextBoxes ... nothing special... The TextBoxes are binded to the properties of an object. <Label Target="{Binding ElementName=txtTitle}" Grid.Column="0" Grid.Row="0" Content="Titel" Foreground="White" /> <TextBox Name="txtTitle" Grid.Column="1" Grid.Row="0" Text="{Binding NewBook.Title}" /> <Label Target="{Binding ElementName=txtAuthor}" Grid.Column="0"

Dialog view containing two Caliburn.Micro views?

百般思念 提交于 2019-12-07 14:22:51
问题 I have a Windows WPF app in which I'm using Caliburn.Micro. The main window view/viewmodel is handled by Caliburn.Micro. One of it's buttons pops up a new dialog window which uses a different view-viewmodel. In this dialog I have a container (list box and some filter controls) that I want to make into a reusable control so that I can include it in other dialogs. To do this I extracted from the dialog's view and viewmodel the relevant code and created a new view and viewmodel. This all looks