caliburn.micro

Caliburn.Micro : How to bind a specific Item of Conductor.Collection.AllActive to a ContentControl

☆樱花仙子☆ 提交于 2020-07-30 10:25:16
问题 My goal is to have 4 different active ViewModels displayed in a grid on the ShellView. The issue is that I have not been able to figure out how to wire up a ContentControl to a specific Item in Items of the Conductor. How can his be done? Here is a simplified version of what I and trying to do. SolutionExplorer ShellViewModel: namespace ContentControlTest.ViewModels { public class ShellViewModel : Conductor<object>.Collection.AllActive { public ShellViewModel() { ActivateItem(new UC1ViewModel

Remove navigation bar on Xamarin Forms app with Caliburn.Micro

混江龙づ霸主 提交于 2020-06-11 16:14:47
问题 When using the FormsApplication base class with a brand new Xamarin.Forms app using Caliburn.Micro, I end up with an empty navigation bar at the top of my screen. I assume it's being created by Caliburn.Micro somehow, because an out-of-the-box Xamarin.Forms app doesn't have that. Is there any way I can use Caliburn.Micro with Xamarin.Forms without this navigation bar? 回答1: I have not used Caliburn.Micro, but I am assuming that it is wrapping your page with a NavigationPage , as what you

Error with Binding in Caliburn.Micro, how to solve?

≡放荡痞女 提交于 2020-05-17 05:46:56
问题 The rest of my program binds normally, but this part of the code doesn't work: This is my View: <Window x:Class="TestProject.Views.MainWindowView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:TestProject.Views" xmlns:cal="http://www.caliburnproject.org" mc

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

人走茶凉 提交于 2020-01-19 05:12:52
问题 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 successfully to bind to that list with a ListViews DataTemplate: <ListView x:Name="AvailableScreens"> <ListView.ItemTemplate> <DataTemplate> <WrapPanel> <BulletDecorator /> <Button x:Name="DisplayView"> <TextBlock Text="{Binding Path=Name,

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

折月煮酒 提交于 2020-01-19 05:12:06
问题 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 successfully to bind to that list with a ListViews DataTemplate: <ListView x:Name="AvailableScreens"> <ListView.ItemTemplate> <DataTemplate> <WrapPanel> <BulletDecorator /> <Button x:Name="DisplayView"> <TextBlock Text="{Binding Path=Name,

MVVM way to close document with possibility to cancel out

不羁岁月 提交于 2020-01-14 09:21:44
问题 I'm using Avalondock 2.x for one of my open source projects, if a document is dirty when you close it you should be able to cancel the close. I am using Caliburn Micro and Coroutine, only way I have been able to solve it is to use C.M to attach to the event <i:EventTrigger EventName="DocumentClosing"> <cal:ActionMessage MethodName="DocumentClosing"> <cal:Parameter Value="$documentcontext" /> <cal:Parameter Value="$eventArgs" /> </cal:ActionMessage> </i:EventTrigger> The event arg has a cancel

Caliburn Micro : passing Object between ViewModel

99封情书 提交于 2020-01-14 02:00:34
问题 I'm developing a simple Crud Application (a windows 8.1 store application) using Caliburn Micro 2.0.0-alpha2 I'm in trouble with navigation between viewmodels, passing object. I read many times the solution proposed by Anders Gustafsson (How to pass parameter to navigated view model with WinRT Caliburn.Micro?) and i tried to adapt it to my scope. But the object is alwais null. I need to pass a single object selected from a listView to my crudPage. The crudPage is composed by an userControl

Caliburn Micro : passing Object between ViewModel

北城以北 提交于 2020-01-14 02:00:34
问题 I'm developing a simple Crud Application (a windows 8.1 store application) using Caliburn Micro 2.0.0-alpha2 I'm in trouble with navigation between viewmodels, passing object. I read many times the solution proposed by Anders Gustafsson (How to pass parameter to navigated view model with WinRT Caliburn.Micro?) and i tried to adapt it to my scope. But the object is alwais null. I need to pass a single object selected from a listView to my crudPage. The crudPage is composed by an userControl

WPF // MahApps.Metro // Caliburn.Micro // Flyout // HeaderedContentControl

↘锁芯ラ 提交于 2020-01-13 19:40:25
问题 Since a change in MahApps.Metro 1.5.0 the base element of a Flyout was changed from ContentControl to HeaderContentControl . Now the MVVM approach with Caliburn.Micro and this suggestion doesn't work anymore. Has anybody else tried to solve this issue in a nice MVVM way? 回答1: While I haven't tried it myself but since the new Flyout control is now based on HeaderedContentControl it would be a simple logic choice to attempt to do this instead of the previous, which was based on ContentControl .

WPF // MahApps.Metro // Caliburn.Micro // Flyout // HeaderedContentControl

老子叫甜甜 提交于 2020-01-13 19:39:06
问题 Since a change in MahApps.Metro 1.5.0 the base element of a Flyout was changed from ContentControl to HeaderContentControl . Now the MVVM approach with Caliburn.Micro and this suggestion doesn't work anymore. Has anybody else tried to solve this issue in a nice MVVM way? 回答1: While I haven't tried it myself but since the new Flyout control is now based on HeaderedContentControl it would be a simple logic choice to attempt to do this instead of the previous, which was based on ContentControl .