December 2018
Intermediate to advanced
416 pages
10h 30m
English
To add a custom control to a view, we need to import a namespace to the view. If the view is in another assembly, we also need to specify the assembly, but in this case, we have both the view and the control in the same namespace, as shown in the following code:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:controls="clr-namespace:Weather.Controls" x:Class="Weather.Views.MainView"
Follow the steps below to build the view: