caliburn.micro

Caliburn.Micro getting it to bind UserControls in a MainView to their ViewModels

你离开我真会死。 提交于 2019-12-02 23:22:31
I have a MainView.xaml, binding to a MainViewModel just fine. What I wanted to try out was splitting a lot of controls I have on my main form into UserControls. Now I put the UserControls inside the Views folder along with the MainView and named them, LeftSideControlView.xaml and RightSideControlView.xaml. The corresponding ViewModels are in the ViewModels folder called LeftSideControlViewModel, etc. I successfully added the usercontrols to the mainview: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <UserControls:LeftSideControlView cal

ReactiveUI and Caliburn Micro together?

戏子无情 提交于 2019-12-02 16:38:42
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 if it might be more trouble than it's worth to try and make them work together. Some of the things we

Drawing line on a canvas in WPF MVVM doesn't work

柔情痞子 提交于 2019-12-02 15:49:43
问题 I have this xaml: <Canvas cal:View.Context="DrawCanvas"> <!--<Line X1="1" Y1="1" X2="400" Y2="400" Stroke="Black" StrokeThickness="20" IsHitTestVisible="False"/>--> </Canvas> and in model I have: public Canvas DrawCanvas { get; set; } public ImageSourceViewModel() { this.PropertyChanged += this.ImageSourceViewModel_PropertyChanged; this.Scale = 1; this.TranslateX = 0; this.TranslateY = 0; DrawCanvas=new Canvas(); var line = new Line(); line.X1= 1; line.Y1 = 1; line.X2 = 100; line.Y2 = 10;

Modal Popup and views communication under MVVM pattern on C#

ぃ、小莉子 提交于 2019-12-02 11:04:44
问题 I have a large project coded with VB6 which I've been trying to upgrade to new technologies for a few months. My project consist on 6 administrative modules reunited under a client-server application. Coming from VB, my logical choice was to upgrade to .NET. After a lot of research I decide to use C# , WPF and the MVVM pattern (with Caliburn Micro). At the beggining I had some problems, but I managed to resolve them. But now I've come to a point where I need (like every complex application)

How can i get selected item(s) and events from ListView with Caliburn.Micro in C#?

时光毁灭记忆、已成空白 提交于 2019-12-02 10:23:54
问题 I wrote a program with MVVM (C#) and XAML using Caliburn.Micro library, how can i: get all selected items (not only one item)? get selected change event? sort items by clicking header columns? Any help would be appreciated. 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="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" xmlns

Modal Popup and views communication under MVVM pattern on C#

南笙酒味 提交于 2019-12-02 03:15:21
I have a large project coded with VB6 which I've been trying to upgrade to new technologies for a few months. My project consist on 6 administrative modules reunited under a client-server application. Coming from VB, my logical choice was to upgrade to .NET. After a lot of research I decide to use C# , WPF and the MVVM pattern (with Caliburn Micro). At the beggining I had some problems, but I managed to resolve them. But now I've come to a point where I need (like every complex application) to communicate with different views and their corresponding viewModel through modal popups (or some

How can i get selected item(s) and events from ListView with Caliburn.Micro in C#?

雨燕双飞 提交于 2019-12-02 02:50:36
I wrote a program with MVVM (C#) and XAML using Caliburn.Micro library, how can i: get all selected items (not only one item)? get selected change event? sort items by clicking header columns? Any help would be appreciated. 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="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:vm="clr

how to use DesignInstance with Caliburn.Micro

本小妞迷上赌 提交于 2019-12-01 22:37:47
I am using Caliburn.Micro I have this WPF View that in design time uses sample data successfully on basic properties like firstname etc but can't won't find the view for properties and collections of complex types <UserControl x:Class="NonRepositoryItems.Reviewer.ReviewerView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:MyFramework.Controls.BusyIndicator

How to force Image control to close the file that it opens in wpf

為{幸葍}努か 提交于 2019-12-01 19:11:53
I have an image on my wpf page which opens an image file form hard disk. The XAML for defining the image is: <Image Canvas.Left="65" Canvas.Top="5" Width="510" Height="255" Source="{Binding Path=ImageFileName}" /> I am using Caliburn Micro and ImageFileName is updated with the name of file that image control should show. When the image is opend by image control, I need to change the file. But the file is locked by image control and I can not delete or copy any mage over it. How can I force Image to close the file after it opened it or when I need to copy another file over it? I checked and

Advice on Views navigation using Caliburn.Micro MVVM WPF

一世执手 提交于 2019-12-01 12:16:32
I'm new on Caliburn Micro and want some advice on which path to take to devolop my app interface and navigation between views. My idea is to have a MainWindow which will contain a menu of buttons, each one related with a specific view. Each view will be stored in a separated WPF UserControl. The mainWindow will also contain a TabControl bound to an ObservableCollection of tabs on viewmodel. Everytime a button on menu is clicked, I want to add a new tab with a ContentPresenter inside that will dynamically load a view and its corresponding viewmodel. So my questions: 1) Should I use a Screen