caliburn.micro

Caliburn micro in no Application object mode, like in AutoCAD dll plugin

假装没事ソ 提交于 2020-01-13 15:50:30
问题 I am using Caliburn Micro to develop WPF application. A few of views of this application needs to be loaded in an AutoCAD environment. The AutoCAD programming environment allows developement of AutoCAD plugins (of type dll) and load them into the AutoCAD environment. Because of AutoCAD plugin type(dll), the plugin does not have an Application Object, so the bootstrapper has to be customized for that. According to the Caliburn Micro documentation here (Scroll down to "Using Caliburn.Micro in

How can i get all selected item(s) from ListView in ViewModel class? [closed]

只愿长相守 提交于 2020-01-07 00:25:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I wrote a program with MVVM (C#) and XAML using Caliburn.Micro library, how can I get all selected items from ListView control (not only one item)? My code link ... With binding method SelectedItem="{Binding SelectedItem}" just got first selected item! 回答1: To get selected items into the ViewModel, first create

Caliburn.micro, WPF and two comboboxes

懵懂的女人 提交于 2020-01-06 12:44:17
问题 I want to solve Master -> Detail problem with my Caliburn.Micro + wpf project. I have two comboboxes coded like this in TaskManagerView.xaml : <ComboBox x:Name="ProjectsList" SelectedValuePath="{Binding Path=SelectedProjectsList, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> <ComboBox x:Name="TasksList"/> The first Combobox ProjectsList works ok, i can get what i want to. Second is a little complicated. I get SelectedProjectList correctly (while im debuging on button i see what i

Bind a DataGrid to the selectedrow object of a second datagrid, WPF Caliburn.Micro

三世轮回 提交于 2020-01-06 06:45:49
问题 I have a datagrid that is bound to a BindableCollection, this is working properly, every repair order I add to the BindableCollection shows in the Datagrid. I have a second Datagrid on the same view for "WriteOffs", Each "RepairOrder" has a property of BindableCollection. What I am trying to do is bind the WriteOff DataGrid to the WriteOffs of the selected row. So every time the user selects a row in the "RepairOrder" datagrid the write offs stored in the writeoff property is shown in the

Binding ListBox to a collection of screens (widgets)

不想你离开。 提交于 2020-01-05 04:23:54
问题 Given that I have the following widget (and a view attached to it): public class MyWidgetViewModel : Screen {} I can use and display it easily in an another view. The view model "hosting" the widget looks like the following: public class WidgetWorkspaceViewModel : Screen { private Screen myWidget = new MyWidgetViewModel(); public Screen MyWidget { get { return myWidget; } set { myWidget = value; } } } And the control is shown on WidgetWorkspaceView like this: <ContentControl x:Name="OneWidget

Caliburn Micro Xamarin Cross-Platform Phone Feature API's

旧时模样 提交于 2020-01-03 17:13:15
问题 Does Caliburn Micro have Cross-Platform Mobile feature API's? For example; a cross-plaform way to access a Smart-Phones (Android, iOS and Windows Phone) Location, Accelerometer, Maps, Phone, Contacts or etc.? I know its alot to ask considering that Caliburn Micro Xamarin support was only beta released around a week ago but you never know. Maybe the beta release has these features or there are plugins like MVVM Cross has? 回答1: There hasn't ever been a plugin system for Caliburn.Micro. At least

Caliburn Micro Xamarin Cross-Platform Phone Feature API's

痴心易碎 提交于 2020-01-03 17:13:11
问题 Does Caliburn Micro have Cross-Platform Mobile feature API's? For example; a cross-plaform way to access a Smart-Phones (Android, iOS and Windows Phone) Location, Accelerometer, Maps, Phone, Contacts or etc.? I know its alot to ask considering that Caliburn Micro Xamarin support was only beta released around a week ago but you never know. Maybe the beta release has these features or there are plugins like MVVM Cross has? 回答1: There hasn't ever been a plugin system for Caliburn.Micro. At least

Mapping derived ViewModels to base class View in Caliburn.Micro

天涯浪子 提交于 2020-01-03 14:16:13
问题 I have a base ViewModel and associated View. I also have multiple derived ViewModels from the base ViewModel, but I'd like to use the base View for display. Base ViewModel and View: vm: MyCompany.MyApp.Modules.Wizard.ViewModels.WizardViewModel vw: MyCompany.MyApp.Modules.Wizard.Views.WizardView Derived from WizardViewModel : vm: MyCompany.MyApp.Modules.NewSpec.ViewModels.NewSpecViewModel : WizardViewModel vw: (map to MyCompany.MyApp.Modules.Wizard.Views.WizardView ) vm: MyCompany.MyApp

Caliburn.Micro DisplayRootViewFor throws NullReferenceException

此生再无相见时 提交于 2020-01-03 12:25:05
问题 I have the following code in my Bootstrapper: private SimpleContainer container; protected override void Configure() { container = new SimpleContainer(); container.Singleton<IEventAggregator, EventAggregator>(); container.PerRequest<InitialViewModel>(); } protected override object GetInstance(Type service, string key) { return container.GetInstance(service, key); } protected override IEnumerable<object> GetAllInstances(Type service) { return container.GetAllInstances(service); } protected

Re-implementing WindowManager using ModernUI + Caliburn.Micro combination

萝らか妹 提交于 2020-01-03 02:23:14
问题 Here Caliburn.Micro was successfully combined with ModernUI. But if we want to use multiple windows we also need to re-implement Caliburn's WindowManager to work properly with ModernUI. How can it be done? UPDATE: (Additional question about IoC-Container/Dependency Injection) Ok, as I get it: I used a Constructor Injection here: public class BuildingsViewModel : Conductor<IScreen> { public BuildingsViewModel(IWindowManager _windowManager) { windowManager = _windowManager; } } As far as