caliburn.micro

Does Caliburn.Micro play nicely with user controls?

[亡魂溺海] 提交于 2019-12-17 15:49:11
问题 I'm a novice WPF programmer. I'm trying to add some structure to my code: both User Controls and MVVM. Researching here, I've found that people recommend Caliburn.Micro. On the other hand, I've found some complaints here and elsewhere about Caliburn.Micro not playing nicely with UserControls. So my question is: Does Caliburn.Micro play nicely with User Controls? 回答1: Yes, Caliburn.Micro plays nicely with user controls. It's an opinionated framework, but not to the point of forcing you down a

Why do Blend Interaction event triggers fire multiple times when using a Caliburn Micro Conductor.OneActive?

余生长醉 提交于 2019-12-13 18:27:23
问题 [Note that I asked the wrong question on my first stab at diagnosing this - now corrected.] I have a WPF application with one main window that inherits from Conductor.Collection.OneActive. It handles navigation requests and keeps a cache of the viewmodels so that the state is maintained. This private collection is almost identical to the base.Items collection but not all of the viewmodels are IScreen. Everything works fine and state is maintained when we move from one active item to another.

How to show ContentControl in designer when using Calibrun.Micro viewModel-first approach?

廉价感情. 提交于 2019-12-13 14:41:48
问题 I'm using Caliburn.Micro (CM) in a WPF application with ViewModel-first approach. I'm composing the main view with a command bar and an active item. Main viewModel sets the property for the command bar viewModel, and navigates to active item correctly. Everything looks fine at runtime, the issue is only related to design-time: the main view shows empty in designer and I cannot find how to set it correctly. I managed to having this working in other scenarios, e.g. when setting the datacontext

How can I bind a container to listview control in MVVM standard with Caliburn.Micro?

 ̄綄美尐妖づ 提交于 2019-12-13 13:52:39
问题 I'm writing a program with MVVM (C#) and XAML using Caliburn.Micro library. I was wondering how can I bind my Listview control with some containers such as List<Type> , IEnumerable<Type> or ObservableCollection< Type> ? Views\MainView.xaml <ListView Grid.Column="1" x:Name="FileListView" ItemsSource="{Binding ListOfFile}" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="10" Background="#FFE6EEF7"> <ListView.View> <GridView> <GridViewColumn Header="Status" Width="100" />

IoC container for Caliburn.Micro [closed]

半城伤御伤魂 提交于 2019-12-13 06:21:30
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I will be developing a new WPF application. I decided to use Caliburn.Micro for my MVVM so would like to ask you which one of the known IoC containers is the best approach with WPF Caliburn.Micro framework based on yours opinion or experience ? And if you could say why is

Disabling multiple controls depending on a state

房东的猫 提交于 2019-12-13 04:38:28
问题 I'm new to both Caliburn and WPF, so excuse me if it is a rather trivial question. The scenario is the following: I have multiple controls (like buttons and textboxes - the latter is the important part). Their state (Enabled/Disabled) are dependent on a boolean property. The first suggested method I tried was using the Can[FunctionName] convention and NotifyOfPropertyChange(() => Can[FunctionName]). It worked well with the button, but it did not work with the textbox. How do I bind IsEnabled

Can you bind to the ImageSource property of an ImageBrush with Caliburn.Micro (WinRT)?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 04:16:32
问题 I was hoping to use dynamic background images with Caliburn.Micro. This is what I have tried without success. <Grid> <Grid.Background> <ImageBrush x:Name="MyPhoto" /> </Grid.Background> </Grid> //some view model public class ImageViewModel { public ImageSource MyPhoto {get;set;} } //Add Convention //App.XAML.cs ... public override void Configure() { ... ConventionManager.AddElementConvention<ImageBrush>(ImageBrush.ImageSourceProperty, "ImageSource", "Loaded"); ... } Is it possible to bind and

Caliburn Micro content control navigation

我们两清 提交于 2019-12-13 03:10:40
问题 I'm using caliburn micro for this project. I have my ShellView with my contentcontrol: <ContentControl x:Name="ActiveItem" Grid.Row="0" Grid.Column="0" /> In ShellViewModel i got it to show my usercontrol LoginView with: public class ShellViewModel : Conductor<object> { public ShellViewModel() { ActivateItem(new LoginViewModel()); } public void ShowSignUp() { ActivateItem(new SignUpViewModel()); } } However, i can't navigate to SignUpView from LoginView with my button: <!-- Row 4 --> <Button

Caliburn Micro Navigation with MainMenu and SubMenu [closed]

﹥>﹥吖頭↗ 提交于 2019-12-13 02:40:42
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . The first thanks Charleh for caliburn.micro navigation solution. How to Active SubMenu navigate to Page2 and Deactive if navigate other page? ShellView.xaml <Window x:Class="Navigation.ShellView" xmlns="http:/

WPF Xceed PropertyGrid showing “Xceed.Wpf.Toolkit.PropertyGrid.Attributes.Item” instead of the real DisplayName

戏子无情 提交于 2019-12-13 00:39:16
问题 I'm trying to use Xceed PropertyGrid to show dropdown with hardcoded string values. Instead of showing the items as the strings I assign as the IItemSource , PropertyGrid showing: "Xceed.Wpf.Toolkit.PropertyGrid.Attributes.Item" for each item in the dropdown. When I select an object, the desired string is showing as the chosen item. This is the dropdown items I see: And when I choose an item, I can see it the way I want it to appear as the dropdown items as well: My code: XAML: <xctk