It's compatible with portable projects as well as .Net standard projects.
- Install Symtech.Xamarin.UI to PCL project as well as client projects
- Initialise Symtech.Xamarin.UI in MainAcitvity.cs and AppDelegate.cs:
protected override void OnCreate(Bundle savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(savedInstanceState);
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Symtech.Xamarin.UI.Plugin.Init(this);
LoadApplication(new App());
}
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Symtech.Xamarin.UI.iOS.Plugin.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
- Add namespace to XAML:
xmlns:controls="clr-namespace:Symtech.Xamarin.UI.Controls;assembly=Symtech.Xamarin.UI"
- Use the UI component from the plugin:
<controls:FancyEntry x:Name="EmailEntry" Title="Email" Style="{StaticResource FancyEntry}" Keyboard="Email" ReturnType="Next"/>
Refer to sample project