Skip to primary content
Skip to secondary content

Xamarin Sharp – Codez with Buddhima

C#.Net, Xamarin, ASP.Net, Visual Studio, SQL Server, Azure DevOps, VSTS

Xamarin Sharp – Codez with Buddhima

Main menu

  • Home
  • About

Tag Archives: SfTextBoxExt’ was not found in namespace

Cannot deserialize XBF metadata type list as SfTextBoxExt was not found in namespace Syncfusion.UI.Xaml.Controls.Input =>How to Solve ? Occurs when adding Syncfusion Controls for UWP project in Xamain Forms in Visual Studio 2017

Posted on June 25, 2017 by Buddhima Kudagama
1

Objective

I have created a Xamarin forms app using Syncfusion Controls and Set the Startup project as Universal Windows Platform(UWP). I have used Syncfusion SfAutoComplete Control and when run the app on Windows Phone Virtual device which has Windows 10 OS, It gave me and error saying…

6 Success SFAutoComplete

Image 0 : Expected output

Cannot deserialize XBF metadata type list as ‘SfTextBoxExt’ was not found in namespace ‘Syncfusion.UI.Xaml.Controls.Input

2 error

Image 1 : Error

Here are the referenced class libraries in my current UWP project..

1 project

Image 2 : Project references in UWP

Reason

Then I looked for a solution and I found the reason ..

The reason was some DLL files(class libraries) are missing. 

The DLL files are ..

  • Syncfusion.SfInput.UWP.dll
  • Syncfusion.SfShared.UWP

How to Solve the Issue ?

To Solve the issue we have to add those two dll files to the windows phone project..

So Lets add them..

  1. Go to references…
3 add reference

Image 3 :  Click References to go to select dialague

2. Browse dll files from the Location that you have installed the Syncfusion dll files …

4. browse slls

Image 4 : Select necessary dll(s) from directory and add to list

Then Select above dll files from the list and Click “OK”.

4 add missing dll

Image 5 : Select dll(s) from the list

3. Now you can see the selected dll files has been added to the references in the project…

5 added

Image 6 : dll(s) has been added

4. Then run the project and the app will run successfully…

6 Success SFAutoComplete

Image 7 : App runs successsfully

References…

https://help.syncfusion.com/uwp/sftextboxext/viewing-suggestions-on-control-focus

https://help.syncfusion.com/xamarin/sfautocomplete/getting-started

https://www.syncfusion.com/products/xamarin/autocomplete

Thank You !

Code..

View XAML


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:autocomplete="clr-namespace:Syncfusion.SfAutoComplete.XForms;assembly=Syncfusion.SfAutoComplete.XForms"
x:Class="Syncfusion2.View.AutoComplete">
<ContentPage.Content>
<StackLayout VerticalOptions="Start" HorizontalOptions="Start" Padding="30">
<Label Text="Select Person..." FontSize="Large" TextColor="Gray"/>
<autocomplete:SfAutoComplete x:Name="acData" DataSource="{Binding EmployeeCollection}" DisplayMemberPath="Name" AutoCompleteMode="Suggest"
SelectedValuePath="ID">
<autocomplete:SfAutoComplete.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Grid.Column="0" Source="{Binding Image}"/>
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Name}" HorizontalOptions="FillAndExpand"/>
</Grid>
</DataTemplate>
</autocomplete:SfAutoComplete.ItemTemplate>
</autocomplete:SfAutoComplete>
</StackLayout>
</ContentPage.Content>
</ContentPage>

View.cs


using System;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;
using Xamarin.Forms;using Xamarin.Forms.Xaml;using Syncfusion2.ViewModel;
namespace Syncfusion2.View{ [XamlCompilation(XamlCompilationOptions.Compile)] public partial class AutoComplete : ContentPage {        EmployeeViewModel viewModel = new EmployeeViewModel(); public AutoComplete () { InitializeComponent ();            this.BindingContext = viewModel;        }    }}

ViewModel


using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Syncfusion2.Model;

namespace Syncfusion2.ViewModel
{
public class EmployeeViewModel
{
private ObservableCollection<Employee> employeeCollection;
public ObservableCollection<Employee> EmployeeCollection
{
get { return employeeCollection; }
set { employeeCollection = value; }
}

public EmployeeViewModel()
{
employeeCollection = new ObservableCollection<Employee>();
employeeCollection.Add(new Employee() { ID = 1, Name = "Eric", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 2, Name = "James", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 3, Name = "Jacob", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 4, Name = "Lucas", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 5, Name = "Mark", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 6, Name = "Aldan", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 7, Name = "Aldrin", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 8, Name = "Alan", Image = "Lanka.png" });
employeeCollection.Add(new Employee() { ID = 9, Name = "Aaron", Image = "Lanka.png" });
}
}
}

UWP Project-> App.xaml -> OnLaunched  Event

You have to add below code to the OnLaunched event in App.xaml.cs in UQP project to apply necessary functions of syncfusion controls.

for more information go to below link..

https://help.syncfusion.com/xamarin/sfautocomplete/getting-started


/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif

Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
{
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
List<System.Reflection.Assembly> assembliesToInclude = new List<System.Reflection.Assembly>();
// Add all the renderer assemblies your app uses
assembliesToInclude.Add(typeof(Syncfusion.SfAutoComplete.XForms.UWP.SfAutoCompleteRenderer).GetTypeInfo().Assembly);
// Replace the Xamarin.Forms.Forms.Init(e);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
// Ensure the current window is active
Window.Current.Activate();
}

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)

Like this:

Like Loading...
Posted in Programming, Visual Studio, Visual Studio 2013, Visual Studio 2015, Visual Studio 2017, Windows Phone, Xamarin, Xamarin Forms | Tagged C#, Cannot deserialize XBF metadata, Mobile, SfAutoComplete, SfTextBoxExt, SfTextBoxExt was not found in namespace Syncfusion.UI.Xaml.Controls.Input, SfTextBoxExt' was not found in namespace, Syncfusion, Syncfusion.SfTextBoxExt, Syncfusion.UI, Syncfusion.UI.Xaml, Syncfusion.UI.Xaml.Controls, Syncfusion.UI.Xaml.Controls.Input, UWP, Visual Studio, Visual Studio 2015, Visual Studio 2017, Windows Phone, Xamarin, Xamarin Forms, XAML | 1 Reply

Recent Posts

  • Too many field references to fit in one dex file: 67428; max is 65536. – When Building Xamarin.Android project in VSTS
  • error MSB6006: “java.exe” exited with code 1. – Xamarin.Android – How to solve ?
  • Xamarin Forms Editor Control – How to Change the Height Dynamically ?
  • Colombo Xamarin Meetup – June 2017 -[Session 2] – Xamarin Forms Rich UI Controls – By : Buddhima Kudagama
  • Cannot deserialize XBF metadata type list as SfTextBoxExt was not found in namespace Syncfusion.UI.Xaml.Controls.Input =>How to Solve ? Occurs when adding Syncfusion Controls for UWP project in Xamain Forms in Visual Studio 2017

Recent Comments

kanmani on Xamarin Forms : ListView Heigh…
Jinni on How to Check the App is runnin…
V on Multiple substitutions specifi…
Buddhima Kudagama on Multiple substitutions specifi…
V on Multiple substitutions specifi…

Archives

  • July 2019
  • April 2018
  • February 2018
  • June 2017
  • May 2017
  • April 2017
  • February 2017
  • January 2017
  • August 2016
  • July 2016
  • November 2015

Categories

  • C# (1)
  • Colombo Xamarin Meetup (1)
  • Excel (1)
  • Programming (28)
    • .Net Core (3)
    • ASP.Net (1)
    • ASP.Net Core MVC (3)
    • ASP.Net MVC (1)
    • C#.Net (12)
    • HTML (1)
    • JSON (2)
    • SQL (4)
      • SQL JOINS (2)
      • SQL Server 2000 (1)
      • SQL Server 2005 (3)
      • SQL Server 2008 R2 (3)
      • SQL Server 2012 (3)
      • SQL Server 2016 (3)
    • Visual Studio (22)
      • Multilingual App Toolkit (1)
      • Syncfusion (1)
      • Visual Studio 2013 (11)
      • Visual Studio 2015 (18)
      • Visual Studio 2017 (11)
    • Xamarin (19)
      • Android (14)
        • android-sdk (3)
        • Java Development Kit (1)
          • JDK 7 (1)
          • JDK 8 (1)
      • iOS (5)
      • Windows Phone (6)
      • Xamarin Forms (11)
      • Xamarin Video Lessions (3)
    • XAML (8)
    • XML (1)
  • Uncategorized (5)

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Recent Posts

  • Too many field references to fit in one dex file: 67428; max is 65536. – When Building Xamarin.Android project in VSTS
  • error MSB6006: “java.exe” exited with code 1. – Xamarin.Android – How to solve ?
  • Xamarin Forms Editor Control – How to Change the Height Dynamically ?
  • Colombo Xamarin Meetup – June 2017 -[Session 2] – Xamarin Forms Rich UI Controls – By : Buddhima Kudagama
  • Cannot deserialize XBF metadata type list as SfTextBoxExt was not found in namespace Syncfusion.UI.Xaml.Controls.Input =>How to Solve ? Occurs when adding Syncfusion Controls for UWP project in Xamain Forms in Visual Studio 2017

Recent Comments

kanmani on Xamarin Forms : ListView Heigh…
Jinni on How to Check the App is runnin…
V on Multiple substitutions specifi…
Buddhima Kudagama on Multiple substitutions specifi…
V on Multiple substitutions specifi…

Archives

  • July 2019
  • April 2018
  • February 2018
  • June 2017
  • May 2017
  • April 2017
  • February 2017
  • January 2017
  • August 2016
  • July 2016
  • November 2015

Categories

  • .Net Core
  • Android
  • android-sdk
  • ASP.Net
  • ASP.Net Core MVC
  • ASP.Net MVC
  • C#
  • C#.Net
  • Colombo Xamarin Meetup
  • Excel
  • HTML
  • iOS
  • Java Development Kit
  • JDK 7
  • JDK 8
  • JSON
  • Multilingual App Toolkit
  • Programming
  • SQL
  • SQL JOINS
  • SQL Server 2000
  • SQL Server 2005
  • SQL Server 2008 R2
  • SQL Server 2012
  • SQL Server 2016
  • Syncfusion
  • Uncategorized
  • Visual Studio
  • Visual Studio 2013
  • Visual Studio 2015
  • Visual Studio 2017
  • Windows Phone
  • Xamarin
  • Xamarin Forms
  • Xamarin Video Lessions
  • XAML
  • XML

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
Cancel

 
Loading Comments...
Comment
    ×
    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy
    %d bloggers like this: