What is the difference when using IPlatformInitializer In Prism - xamarin.forms

I've recently started to learn how to use Prism on Xamarin Forms, and I was seeing both Xamarin Studio and Visual Studio.
I created a project in Visual Studio and Xamarin Studio and noticed that in the Visual Studio Template Pack the same UnityApp Project differ with the Xamarin Studio version. In Visual Studio the App class constructor has a parameter of type IPlatformInitializer while the Xamarin Studio version does not.
I will like to know what is the difference between them and when to use each one ?

The Xamarin Studio Templates have not been updated because my Mac went down :)
You only need to use the IPlatformInitilizer if you want to register platform specific services. It's not required.

Related

Edit Xamarin Forms pages visually

I am developing a multiplatform app with Xamarin using Visual Studio on Mac, I do not know how can I edit the MainPage.xaml design, can I edit it using Xcode storyboard? How can I open the page in design mode?
Visual Design of XAML is not currently supported by Xamarin.Forms.
Hot Reload doc here.
Xamarin.Forms XAML Basics will presumably be updated, if such a designer is added.
As a practical matter, instead look for .NET Maui to eventually have such a designer.
Warning
The iOS Designer was deprecated in Visual Studio 2019 version 16.8 and Visual Studio 2019 for Mac version 8.8, and removed in Visual Studio 2019 version 16.9 and Visual Studio for Mac version 8.9. The recommended way to build iOS user interfaces is directly on a Mac running Xcode's Interface Builder. For more information, see Designing user interfaces with Xcode. Official docs
But this means you can not edit the storyboard file in the visual studio directly anymore. But the .xaml could not be edit by Visual Design all the time.

How do i add UWP to xamarin forms in VS2019?

I try to create a new project(xamarin form) in vs2019, and discovered that the UWP template is missing.
I created the project in vs2017 yet it did not work. now I have added a UWP project to the xamarin form app created using vs2019, how do I link them, how do I connect(refrence) the UWP to the portable library?
I want to make use of the portable library in xamarin forms that ha UWP in it, like vs2017 versions
In VS 2019 version 16.0.0 UWP head project have been removed from the Xamarin.Forms app template. However, if you install latest version of VS 2019 (16.0.1) that option should be available to you. According to the release notes:
Add option for Windows (UWP) platform when creating new Xamarin.Forms project from 'Mobile App (Xamarin.Forms)' project template.
Other then that you could just simply add UWP as a separate project and set it up for Xamarin.Forms.

ReactiveUI.XamForms Visual Studio Project Template

I'm new to ReactiveUI and ReactiveUI.XamForms. I would like to know: is there a VS Project Template available for creating a ReactiveUI.XamForms project? (i.e. Similar to Moblie App (Xamarin.Forms) or Prism Blank App (Xamarin Forms))
Unfortunately there is no Visual Studio Project Template at the moment. I know there are plans to get into the Windows Template Studio. Nothing as of now.

Visual Studio : Create a app to point it a website.

OS : Windows-10 creators update.
Visual studio community edition.
We have a website for which we would like to point to our visual studio app to. Is it possible in visual studio we can create an app where we have a container running our website. Currently I have installed visual studio and it's asking me for which modules of visual studio I should download. I don't want to install unnecessary modules.
Screenshot.
Thank you.
Yes, you could create a C# windows forms application and add a webbrowser from the toolbox. in the properties window set the dock to fill it and then in the url box type the url and you're done.

Prism template pack for Visual Studio 2017 for Mac

I've searched all over the internet to no avail. Is there a visual studio Prism template pack for Visual Studio v7.0.1 for Mac?
The closest I've seen to this template is for Xamarin Studio which is not compatible with the new Visual Studio.
No there is not currently a template pack available for VS4Mac. It is something that is being discussed, and will likely get visited once we get the v7.0 preview released. You can track the issue here.
While it's not exactly something that's currently integrated with VS or VS4Mac you can use the dotnet templates available here. They do work cross platform, currently from the dotnet cli, but the VS team is working on integration for all of the templates for both VS2017 and VS4Mac.
You can now install the Templates on VS4Mac. Go to Visual Studio => Extensions, select the Gallery tab, click the Repository drop-down, and select Manage Repositories and add https://prism.azureedge.net/main.mrep
Then on the search bar, you can look up for prism and install the template.

Resources