-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caliburn Micro for Maui #831
Comments
@406841895 Is this a version you made it by yourself or you downloaded it somewhere? |
Not sure what you are asking? |
@vb2ae me neither :-) maybe caliburn micro 5 beta? Is this https://github.com/Caliburn-Micro/Caliburn.Micro/releases/tag/5.0.19-beta%2B7e85e48931 what I should use? |
yes the caliburn micro 5 beta has a maui version. would love any feedback. It is available in our myget feed |
This app is written based on the Microsoft example, I made a mistake and now the style is fine, but I don't know how to configure the IOC container |
In the maui version, why is there no AppBootstrapper, and how do I configure the IOC container SimpleContainer |
Try looking at this sample for inspiration on how to setup Caliburn micro with MAUI: |
I am aware of a bug the I need to get around to fixing it has to do with the viewlocator and namespace mappings. If you run into issues finding views it is because CM is trying to use Activity as a suffix instead of view. |
@KasperSK Has anyone tested if dependency injection really works for MAUI? Looks like it only works for parametless constructor. Look at this file for example: https://github.com/Caliburn-Micro/Caliburn.Micro/blob/master/src/Caliburn.Micro.Platform/Platforms/Maui/Windows/CaliburnApplication.cs Edit: |
@schovan I have not made any effort to integrate with the IoC in MAUI, but there are several ways to achieve this (like in your edit). I think we need to make a setup sample that uses IoC, as one of the more advanced features. |
for android [Application]
} |
For Ios, and Mac Catatlyst
|
Hi, Caliburn.Micro was using for my enterprise app in WPF so I'm using Caliburn.Micro.Maui for migration and with the setup it's works good. But I'm trying to do the ShellView like the tutorial for WPF . However with Window it does not work and causes a bug. Window seems to work with C# code and with Xaml there is no example. <?xml version="1.0" encoding="utf-8" ?>
<Window xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Formation.Views.ShellView"
Title="ShellView">
<!--With WPF-->
<!--<Grid>
<ContentControl x:Name="ActiveItem" Margin="20"/>
</Grid>-->
<ContentPage x:Name="ActiveItem"></ContentPage>
</Window> Do you know how to make it work with the ShellView or maybe it's not yet implemented for MAUI. Otherwise how to change view with another page? |
Closing ticket moved shellview to new issue |
I started experimenting with Maui and found that other MVVM frameworks for MAUI are either unusable (haven't features that I want) or bugged.
Can I somewhere download alpha / beta build for MAUI and test it?
Do you plan some pre-release / when ?
The text was updated successfully, but these errors were encountered: