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

XamSVG

$
0
0

Hi folks,
I'm trying to follow the instructions to use XamSVG in my app from here: http://components.xamarin.com/gettingstarted/xamsvg

The instructions assume that a Xamarin Forms app always has an app.cs - but mine doesn't. All I see is MainActivity.cs which does the following call involving App:

LoadApplication( new App());

Does this mean I need to subclass App so that I can put the following code in its constructor?
var assembly = typeof (App).GetTypeInfo().Assembly;
XamSvg.Shared.Config.ResourceAssembly = assembly;

Thank you!
Mike


Viewing all articles
Browse latest Browse all 77050

Trending Articles