I am very new to Xamarin.Forms android , IOS applications.
And I have small project in WPF which have some controls like openGL control, Windows, Usercontrols. And I need to convert my wpf project into Android and IOS Application using Xamarin.Forms.
I will create other UI Components like labels, buttons, Textbox in Xamarin.Forms but i need to use the Same WPF usercontrols, windows in Android , IOS Application.
Is there any way to do this?
No. iOS and Android do not have any mechanism to render these controls.
Related
Using VS2022 (for Mac); building a .NET MAUI for MacOS app.
How do you add code to interact with controls?
I can add controls via the XCode editor, but I don't understand how to interact with the controls via the .NET Maui API.
I was looking for a similar workflow to the Multi-Platform project type where you can edit the XAML and code behind. It's unclear to me how to do this via the MacOS project type.
Since this is in preview there are no product docs that I could find.
Currently, we have a Cordova plugin and a UWP Class library. The library is using native UIElements for different UI workflows. Is there a way to display those UIElements? I read, that XAML views can't be displayed. Is there a workaround somehow?
Cordova is using the WebViews. So, we just have the WebView environment. But yes, somehow use the XAML view, or communicating with it.
Yes. Cordova is using the WebViews in Android and IOS, but not in Cordova UWP. The low level of Cordova UWP actually is using javascript. The XAML view also is not available.
So, your requirement is impossible.
I make some app for Android/IOS in Visual Studio with Xamarin (not Xamarin.Forms). There are ViewFlipper in Android designer, which I use for carousel component. Is there any same in IOS? I mean not 3-rd party component, but native like ViewFlipper in Android.
you can use 100% IOS & Android Api with Xamarin, means what ever is Available in android or IOS you can use in Xamarin.
there no built in carousel component in IOS.
I am using Syncfusion Carousel and it is free.
The iOS specific Telerik Xamarin calendar control seems smoother than the cross-platform Forms version. Is it possible to have a Xamarin.Forms project that uses the platform specific Telerik controls on some screens?
Yes, you can do this via a Custom Renderer or with Native Embedding.
I was giving an interview for a company and I was told by the architect that they are creating iOS apps from Xamarin.iOS ( NOT Xamarin Forms) with MvvmCross framework and they use storyboards for UI. But if the UI is very simple they use XAML to create them.
I never knew we can use XAML for Xamarin.iOS and Xamarin.Droid. We had a small discussion/argument if that's even possible. He said they were using it successfully.
My question, is it really possible to use XAML in Xamarin.iOS and Xamarin.Droid. Because, if we can do that, I feel no use of using Xamarin forms.
If yes, can anyone provide some kind of documentation?
Thank you.
There is no way to design UI in XAML using Xamarin.Android or Xamarin.iOS, but you can include Xamarin.Forms page in Xamarin.Android or Xamarin.iOS app. This way you can have native app with UI using storyboards, but with some Xamarin.Forms pages designed in XAML.
There is a sample how to do that in Xamarin Forms samples project on GitHub.
Only Xamarin Forms support sharing of UI via XAML.
UI for iOS has to be made using xib or storyboard.
For Android using AXML.
Windows Phone, UWP, WinPhone Silverlight, Windows can use XAML for UI.