Questions tagged [caliburn.micro]
Use this tag for questions related to using Caliburn.Micro framework, troubleshooting issues, and discussing best practices in MVVM development.
2,065
questions
0
votes
0
answers
18
views
Issue with Caliburn Micro's WindowManager Method in WPF - Window Minimization Problem
I'm encountering an issue with Caliburn Micro (WPF version 4.0.212) where the ShowWindowAsync method from the window manager fails to minimize the window when clicking outside of it. This ...
0
votes
2
answers
102
views
ItemsControl that contains bound ComboBox in ItemTemplate (WPF MVVM with Caliburn.Micro)
I'm stuck with a problem to select one item in a single combo box from a list of combo boxes bound in a ItemTemplate. When I select a value in one, that value gets updated in all of them. It resembles ...
0
votes
0
answers
17
views
Caliburn.Micro WPF WindowManager settings not working
I have to open a child window in a sperate monitor, I tried below code but its giving error.
I couldn't find a proper documentation regarding the WindowManger setting. Please find below the code I ...
0
votes
0
answers
12
views
Caliburn.Micro-Multiple shell support
I have to develop a WPF application with two windows, main window in primary monitor are other other one in secondary monitor. Uses shall be able to work on each windows independently, but while ...
0
votes
0
answers
8
views
Can't bind default action when using Mahapps Metro window RightWindowsCommands
I'm using this code with Caliburn Micro:
<mah:MetroWindow.RightWindowCommands>
<mah:WindowCommands>
<Button Name="ClearAll" ToolTip="Clear all">
...
0
votes
1
answer
59
views
WPF Caliburn Micro Bootstrapper not found instance from another project
Caliburn.Micro version 4.0.212.
Projects version .NET6
With Caliburn.Micro 3.0 and .Net Framework 4.7.2 it works
I am getting an error when I try to open a simple viewModel located in another project: ...
0
votes
2
answers
75
views
Binding problems between an usercontrol and its parent (another usercontrol) MVVM
I am creating an UserControl with 2 RepeatButtons and one TextBox. So problems begin when i want to Bind some properties....
FYI i am using Caliburn.micro as Framework..
i need to have the value of ...
0
votes
1
answer
47
views
run a function of an ItemsControl item in MVVM from XAML
I'm doing a simple app in C# WPF using Caliburn.Micro for MVVM
I want to execute a function of an ItemsControl item, but I get the next exception when clicking a Rectangle
System.Exception: 'No ...
0
votes
1
answer
54
views
How to reuse a new view in MVVM with Caliburn.Micro and Ninject
I am testing the possibility to modify dynamically the structure of Grid control (number of Rows/Columns for example).
I am using last version Caliburn.Micro and Ninject and use a GridHelpers (i have ...
0
votes
2
answers
167
views
WPF Caliburn Micro Notify Property Change not updating UI in ShellView
I created a new C# WPF project based on https://www.codemag.com/Article/1905031/A-Design-Pattern-for-Building-WPF-Business-Applications-Part-1
with Caliburn Micro and Windsor Castle based on .NET 7.0 ...
0
votes
0
answers
59
views
CaliburnMicro IEventAggregator won't work with ChildViews
and sorry if this is a somewhat easy question, but I'm still new to CaliburnMicro and EventAggregator is proving to be the worst thing to learn by a long mile. Anyway, let's go to it. I have an app ...
0
votes
0
answers
63
views
WPF app published as exe unhandled exception error
I have been trying to publish my WPF app as a standalone .exe instead of as a manifest. I've followed several posts from here and have added the following lines to the .csproj file:
<PropertyGroup&...
0
votes
1
answer
64
views
WPF TreeView auto expand tree items on condition once
In my View I have a Search Box for filtering and a tree that should be automatically expanded on specific conditions and when the search string is changed.
So the user should be able to see all nodes ...
0
votes
1
answer
41
views
Passing header name of GridViewColumn to ViewModel using Caliburn.Micro
I have a GridView inside a ListView in a WPF application. Upon clicking the column header the list items get sorted alphabetically.
XAML:
<GridViewColumn Header="Name" ...
0
votes
2
answers
147
views
WPF window title doesn't change from xaml
In xaml, I set my title to a value but it doesn't show in the window when I launch my app.
Similar to this post:
https://stackoverflow.com/questions/14397728/wpf-mvvm-bind-window-title-to-property#:~:...
0
votes
1
answer
65
views
Issue in implementing button safeguard on ItemControls in C# WPF App, MVVM structure
I am trying to build a WPF application with an MVVM pattern following Caliburn micro convention. I have a PersonModel class where three properties are declared. Then in the ShellViewModel class, I ...
0
votes
0
answers
50
views
WPF Caliburn.Micro ActivateItem triggers, but doesn't initialize only when called from code behind with datacontext
In my code behind, I am trying to trigger a new activeitem when a user signs in. The ActivateItem triggers but it does not go into the code behind for the view and initialize. When triggering it from ...
0
votes
1
answer
127
views
WPF Caliburn Micro ActiveItem won't display, possibly hidden behind Grid
Very new to WPF, followed along some youtube tutorials utilizing MVVM and Caliburn Micro, and had the ActiveItem working properly so I am sure my set up is sound. Since completing that tutorial I have ...
0
votes
2
answers
69
views
Edit item in DataGrid not updated using MVVM with Caliburn Micro
I have a GridViewModel with a DataGrid which is bound to a BindableCollection of CalibrationPoints.
The grid contains 4 columns: No, Start, Stop and EstimatedCalibrationTime.
The user is able to edit ...
0
votes
0
answers
23
views
Caliburn Micro passing data with the EventAggragator and opening time of Views
I read a file on disc in one ViewModel and at the end i send the data to another Viewmodel via the EventAggregator.
When i switch to the View of the other Viewmodel (with ActivateItemAsync) it takes ...
-3
votes
1
answer
98
views
How to Create a User Control that Contains a List of Another User Control
I recently asked this question (How to Populate a User Control with a Reusable User Control) and received help to create a user control that takes the descriptions from a ViewModel and uses them as ...
1
vote
0
answers
37
views
System.TypeInitializationException: 'The type initializer for 'Caliburn.Micro.Message' threw an exception.'
System.TypeInitializationException: 'The type initializer for 'Caliburn.Micro.Message' threw an exception.'
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.Windows....
0
votes
1
answer
61
views
Declaring TabItems in XAML, binding SelectedItem to view model
I'd like to bind the SelectedItem of a TabControl to a corresponding field in my view model, however while still declaring the available items within the TabControl itself (as opposed to using ...
0
votes
1
answer
188
views
Calling another ViewModel using Caliburn.micro in .NET WPF
I have a ShellView and ShellViewModel. Within that ShellView I have a page call FirstPage which I have embedded as a frame and opening that on Startup is no problem. So far this is what I've done.
...
0
votes
1
answer
124
views
Caliburn.Micro : locating Views when inheriting Viewmodels
I'm trying to connect multiple Viewmodels to a single View using caliburn micro. I found some solution but all seem quite heavy for something that seems to me a quite standard way of doing things.
The ...
0
votes
1
answer
91
views
Caliburn Micro window freezes when clicking button
I'm completely new to MVVM and Caliburn Micro.
I had a program where the code was "behind" the MainWindow. I wanted to make it more responsive so I decided to try to use MVVM.
The problem ...
0
votes
1
answer
42
views
Pop up a view and transfer parameters to original one with caliburn.micro
I used caliburn.micro version 4.0.173 and .NET framework 4.8.
Requirement is as below description
I have a script ViewModel. There is a button to click it and pop up a setting ViewModel.
After setting ...
0
votes
1
answer
365
views
ActivateItemAsync in Caliburn.Micro
I recently started studying about MVVM, in which I'm now looking at the Caliburn.Micro framework. Unfortunately I could only see very old content and the framework documentation is outdated. I'm using ...
1
vote
0
answers
142
views
How do I host a SignalR hub in a WPF app?
I want to self-host ASP.Net Core SignalR hub in my WPF (.NET Core 6) application. I use Autofac as my DI container and Caliburn.Micro as my MVVM framework.
Getting the hosted SignalR hub to start on ...
0
votes
1
answer
121
views
How to register dependencies in another assembly with caliburn.micro's SimpleContainer
I'm working on a modular GUI application with caliburn.micro and I would like to do the bootstraping process separatly for each module.
The reason for me to do that is that each module should be able ...
0
votes
1
answer
142
views
How to properly style a WPF TextBox using Caliburn.Micro MVVM?
i am currenty doing a little bit of styling for a login user control (username, password, login button), using Caliburn.Micro MVVM.
This is my current progress:
I created the user control, with its ...
0
votes
0
answers
56
views
datacontext of contextmenu not getting set with wpf/caliburn micro
Im having an issue getting the dataContext set of a contextmenu launched by a button in my "HomeViewModel". The menuitem when clicked cannot find the method call assigned in the xaml.
For ...
0
votes
1
answer
107
views
Context menu will not remain visible using wpf and caliburn
Having an issue with a context menu not staying open on button click. Im using wpf and caliburn micro to achieve this. The context menu appears and then disappears immediately.
xaml
&...
0
votes
1
answer
42
views
C# WPF CaliburnMicro Snapping location of UserControl to position on Monitor
Snapping the location of a UserControl within a WPF Application using Caliburn Micro was a question that I spent a lot of time looking for an answer to.
Using a ShellView and Caliburn Micro there is a ...
0
votes
1
answer
81
views
NotifyOfPropertyChange Not updating in realtime
I have two Textboxes, I tried to update the second Textbox when i changed the first one but it's only work when i clicked another control or we can say a Button and also if i change the Second Textbox ...
-1
votes
1
answer
165
views
C# WPF SelectionChangedEvent - reset selection - better options?
I have a datagridview populated with items and I am using a SelectionChanged event to populate textboxes from that data when selected.
If I make a selection, everything works. If I click elsewhere in ...
0
votes
1
answer
51
views
XAML Passing Messages from another Element
I have a button where I'm trying to pass down to the ViewModel the ActualHeight/ActualWidth of the main grid on the control. My XAML looks something like this:
<Grid x:Name="MainGrid"&...
0
votes
0
answers
150
views
How to Inject AppDbContext in Wpf core Applications using caliburn micro
I want to add my AppDbContext for every request in my WPFapp.
I'm using caliburn.micro's simple container for dependency injection and I'm wondering How should I register my AppDbContext per request.
...
2
votes
0
answers
143
views
C#: Factory registered in IoC container (Caliburn.micro SimpleContainer)
I found myself struggling with some patterns when trying to implement a DAL for my application.
Some context concerning my knowlege:
C# is quite new for me and some issues might be due to some ...
-2
votes
1
answer
430
views
How to display data from web socket in WPF with MVVM?
I want to get data through a web socket and display it in a WPF application. I am using Caliburn.Micro for the MMVM. Here is my code:
The view model:
private static WSFuturesResponse futures_response ...
0
votes
1
answer
347
views
Caliburn Micro - how to expose properties, solve binding issues in usercontrol WPF
I am learning MVVM using Caliburn Micro. I have two views: ShellView(Main window) and PersonView(UserControl). The ShellView gets bound properly to the ShellViewModel with no problem, but it doesn't ...
1
vote
1
answer
234
views
ViewModel won't handle a EventAggregator event
I only seem to be able to handle EventAggregator events from the ShellViewModel, but I want to handle it from LoginViewModel.
The ShellViewModel constructs LoginViewModel as it's Active Item. I've ...
0
votes
1
answer
74
views
Caliburn how to load data when app is starting?
Net6. I'd like to show MessageBox after long operation (e.g. fetching data) when app is starting.
In version 3.2.0 this works fine. When app is starting, main view shows up, then MessageBox is made ...
0
votes
1
answer
133
views
Does Caliburn Micro work with HandyControl elements? (ex: PasswordBox)?
I have a HandyControl passwordbox and trying to use Caliburn Micro to capture password change but the NotifyOfPropertyChange is not firing on the password box...any ideas?
XAML
<hc:PasswordBox ...
0
votes
1
answer
216
views
wpf mvvm - Is there a way to programmatically create textbox based on number of properties in model and bind to each of them in?
I have multiple objects with multiple properties which I want to display or hide (or create if needed) based on the property value.
For example:
Model:
public class InputModel
{
public string ...
0
votes
0
answers
109
views
Caliburn.Micro - Value not updating after initial update
I am trying to track the connection status of a server using a TextBlock on my ShellView. The TextBlock updates fine when I launch the program saying "Connected", but I am unable to see me ...
0
votes
1
answer
170
views
Caliburn.Mirco Simple Container Multiple Interface Instances
I'm essentially trying to run a tab control using Caliburn Micro's Simple Container where each Tab View Model implements an interface "IMainScreenTabItem" in c#.
When setting up the ...
-1
votes
1
answer
119
views
How to hide menu from dockpanel
I want to hide account menu in application start, after successful login want to show account menu. I tried this but it is not working, account menu is not visible.
ShellView.xaml
<Menu DockPanel....
0
votes
1
answer
46
views
Wpf Caliburn.Micro pressing Close button stops controls update from another thread
Why wpf control stops updating when I press and hold Window Close button? I'm using dotnet472. How to fix that?