Balu
Balu

Reputation: 564

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 from nuget package manager (Version :2.0.5782)

Step 3: Then i added in mainpage.xaml file this 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: then run this project in uwp

1

Step 5: I got this error

If any one have any idea please help me ........

Upvotes: 1

Views: 1219

Answers (1)

Balu
Balu

Reputation: 564

I resolved it (I think it is not a correct way) but i found problem. it is dll not initialize at application loading time . so i tried this below code.

I tried to initialize my XLab dll at 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();
        }
    }
}

Upvotes: 1

Related Questions