c# - xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms" this is could not find -
step 1: create new pcl project
step 2: adding xlabs forms dll nuget package manager (version :2.0.5782)
step 3: added in mainpage.xaml file below code
<contentpage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:app2" xmlns:controls="clr-namespace:xlabs.forms.controls;assembly=xlabs.forms" x:class="app2.mainpage"> <stacklayout> <controls:wraplayout></controls:wraplayout> </stacklayout> </contentpage> using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using xamarin.forms; namespace app3 { public partial class mainpage : contentpage { public mainpage() { initializecomponent(); } } }
step 4: run project in uwp
step 5: got error
if 1 have idea please me ........
i resolved (i think not correct way) found problem. dll not initialize @ application loading time . tried below code.
i tried initialize xlab dll @ before initializecomponent() .
using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using xamarin.forms; using xlabs.forms.controls; namespace app3 { public partial class mainpage : contentpage { public mainpage() { wraplayout wp = new wraplayout(); initializecomponent(); } } }
Comments
Post a Comment