Xamarin.Forms
35 TopicsWhat platform/technology/framework to use. I am lost. :-(
Hi everyone, I want to develop a new application that will run on Windows (desktop app) and android. I have about 30y of experience in development and the last 15 in C#/VS/.NET. At work we work with Winforms/WPF and .NET 4.8. For my personal new product I would like to start with all the latest and greatest but it's hard to find what to use. First of all I upgraded to VS 2022. I've been reading about .NET5/6, Xamarin, Xamarin Forms, .NET MAUI, Win UI, Winforms, WPF, UWP, Blazor, .NET Core, .NET Standard,.... but it's a mess to get an overview of what would fit best. The project would have 1 or 2 core assembly's with the logic and then a UI for Windows and one for Android. So before I start I would like to get an idea of what you would use. Thanks!Solved11KViews1like7Comments.NET MAUI AppLinks
Xamarin.Forms documentation has information on how to setup app links. .NET MAUI works with single project for both iOS and Android. I didn't see documentation to setup AppLinks/UniversalLinks in iOS and Android. Could you provide info on how to setup applinks and universal links (Android and iOS) in single project scenario?Solved7.6KViews0likes5CommentsIssue with upgrade Xamarin to .Net 6
I decided to try to upgrade the old Xamarin Forms app to .Net 6 and found an issue. Error: error XFVM001: Target Framework Version is currently v6.0 and must be greater than or equal to v9.0 in order to use Material on Android. Also, the output contains next line: warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '30' is less than $(TargetFrameworkVersion) ''. Using API-31 for ACW compilation. The new project file looks like that: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>exe</OutputType> <TargetFramework>net6.0-android</TargetFramework> <TargetFrameworkVersion>v30.0</TargetFrameworkVersion> </PropertyGroup> </Project> I suppose it is somehow related to Xamarin.Forms.Visual.Material. Any ideas what is wrong? Update: I tried to use the upgrade tool, but it failed too. It was not able to find the nugets for some reason. Update 2: https://github.com/byme8/expXamarin64.4KViews0likes1CommentCan we use Maui.Essentials without Maui UI framework?
Previously Xamarin.Essencials was an independed library that could be used with non-XamarinForms applications. Currently this library was rebranded into Maui.Essentials. Which raises a question, if this library become a part of Maui framework with hard dependency on it, or if it still can be used without this GUI framework. I don't see any references to the Maui framework at the moment except Microsoft.Maui.Graphics. Still, I want to see official confirmation stated somewhere. Use cases: 1. We want to be able to build Avalonia applications and use helpers from Maui.Essentials without referencing whole Maui framework. 2. Same about Uno Platform. It should be possible to use it with Maui.Essentials without Maui framework. 3. I also can imagine applications that are built with "net6-ios/android" targets with native UIs without "Forms" from MAUI. These applications will benefit from Maui.Essentials without unnecessary dependency from Maui framework. Thanks, Max Katsydan.3.7KViews2likes2CommentsBuilding OSS projects with C# and .NET
Register: https://developer.microsoft.com/reactor/eventregistration/register/14996 Join us on Thursday December 2nd for an engaging discussion with contributors to open-source software (OSS) projects being built and maintained in C# and .NET. Led by Claire Novotny, our event host and Senior Program Manager on the .NET team at Microsoft, this conversation-style event will feature contributors from two OSS projects: Andres Pineda from Uno Platform and David Paquette from Humanitarian Toolbox. https://github.com/unoplatform https://github.com/htbox You’ll learn about the goals and status of these OSS projects, dive into the technology used to build and maintain them while relying on a distributed team of developers, and discover some lessons learned from experiences contributing to the creation of open-source software. Do you have any questions for the group to address during this conversation? Please use this form to submit your questions before midnight PT on Tuesday November 30: https://aka.ms/OSSQuestions Speakers: Claire Novotny, Senior Program Manager at Microsoft Andres Pineda, Senior Software Engineer at Shopify Andres is a Software Developer with a passion for Mobile Technologies. He is part of different developer communities where he collaborates in different ways (coding, mentoring, hosting events, speaking, etc). In his free time, he enjoys working out, playing a video game, or just chilling out watching a tv show. David Paquette, Senior Software Engineer at Microsoft3.5KViews0likes0CommentsMigrate UWP App to MAUI Windows: Error after update with MSIX
I currently have a Xamarin Forms UWP App in the Microsoft Store. In the next months I want to update it to MAUI. For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin Forms app to MAUI with side loading for Windows. After installing the MAUI-msix-Update, an error appears: Is this a general problem or do I have a specific issue in my manifest? Sample app: https://github.com/reinhardlackner/SampleUpdateMauiApp Debugging is working correctly (I can start the UWP-App "SampleUpdateApp.UWP" in Debug mode... and after closing it I can start the MAUI-App "SampleNewUpdatedApp") - and the saved click-data from the UWP app are shown in the MAUI app: Sideloading-Update does not work: a) SampleUpdateApp.UWP - Right click => Publish... Sideloading Use test certificate Install UWP app appxbundle-file App opens => OK b) Install MAUI App as Update SampleNewUpdatedApp - Right click => Publish... Sideloading Use same certificate Create MSIX x86 publishing profile and version is 1.0.1 (update of Xamarin 1.0.0) Start created msix-Package and click on Update: Error message is shown: App installation failed with error message: Deployment Add operation with target volume C: on Package E965F79B-76C7-47E0-8308-4A503105EDE0_1.0.1.0_x86__ab06nvn9z6x6m from: (SampleNewUpdatedApp_1.0.1.0_x86.msix) failed with error 0x80073CF3. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf3) If the Xamarin app was not installed before, the MAUI App can be installed correctly: Does anybody have an idea why the update installation is not possible? I assume it could be related with the Manifest-File... Manifest UWP: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleUpdateApp.UWP/Package.appxmanifest Manifest MAUI: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleNewUpdatedApp/Platforms/Windows/Package.appxmanifest2.5KViews0likes2Commentshow does MAUI handle cross-platform gesture recognition
specifically how is it implemented for each platform and where can i find the code for each platform in regards to this gesture recognition for example, for MacOS i assume there would be some custom NSView implementation with overrides for the following TouchesBeganWithEvent TouchesMovedWithEvent TouchesEndedWithEvent TouchesCancelledWithEvent and for android i assume there would be similar with custom View implementation and OnTouchEvent method override i do not know for windows nor linux as i have not experimented with those platforms yet specifically i assume the gesture API MAUI provides is truely cross-platform and has no platform-dependant behavioural differences (with some exceptions for certain gestures for example a mouse or stylus CANNOT perform a two-finger scroll gesture however would be implemented via the scroll-wheel if present on the mouse on a mobile-device a two-finger scroll gesture does not make sense since it is usually just one finger for scrolling on a trackpad two-finger scrolling makes sense however regardless of HOW it is implemented, the api would provide a platform-independant way of tracking how much the user has scrolled, possibly accounting for some sensitivity setting the user can modify at will similar to pointer-acceleration settings for large and small monitors and high dpi and low dpi monitors2.5KViews0likes2CommentsNew Product Development : Xamarin forms Vs MAUI
Hi Team, Good Morning! We are working on revamping the UI of our Core Product App, which was built using Xamarin forms, and is now in 5.0.X, and since MAUI is evolving and is not available as a GA, kindly advise on following questions.. 1. Are there any other release for Xamarin planned 2. Until when do we have the support for Xamarin.Forms (Date would be critical) 2. For a enterprise like us, who are looking at investing on revamping the UI of the app, which path would be better to be taken up, if we go ahead with Xamarin way, how good is the support for migrating the app from Xamarin to MAUI planned from Microsoft... If the migration tool is available, approximately, how much manual effort may be needed to convert it 100% to MAUI.. Thanks in advance, the response from your end is going to be very critical in the decision making on the way we are going to forward further.. Thanks, Shri Guru Baskar1.9KViews0likes5CommentsHow to clip a View using XAML Style?
I have in my code several times this code <Image Aspect="AspectFit" HeightRequest="75" WidthRequest="75"> <Image.Clip> <EllipseGeometry Center="37.5,37.5" RadiusX="37.5" RadiusY="37.5" /> </Image.Clip> </Image> And I want to extract it as a XAML Style to reuse and reduce the code It would look something like this <Style TargetType="Image" ApplyToDerivedTypes="True" x:Key="roundedImageStyle"> <Setter Property="HeightRequest" Value="75"/> <Setter Property="WidthRequest" Value="75"/> <Setter Property="Aspect" Value="AspectFit"/> <Setter Property="Clip" Value="??????"/> </Style> How can I set the Clip inside the style?Solved1.9KViews0likes1Comment
