Passa ai contenuti principali

Xamarin.Forms Reusable XAML Page Base Class

The base class is a normal XAML Page.
The derived class comes from a new XAML Page, then we change:

In code:

public partial class MyPage1 : MyPageBase

In xaml:


<local:MyPageBase xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
x:Class="xam0001.MyPage1"
xmlns:local="clr-namespace:xam0001">
 
</local:MyPageBase


Commenti