Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Trying to avoid Xaml, how to set AutowireViewModel by code?

$
0
0

Just started working on Prism, and something like AutowireViewModel, how to set it to true by using code instead of Xaml?

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/ xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" prism:ViewModelLocator.AutowireViewModel="True" x:Class="HelloXFPrism.Views.SpeakPage">

Thanks in advance.

Why not using Xaml?
The problems of Xaml in Xamarin are irritating me greatly, so I'm trying to avoid xaml all together.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>