question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type input:CheckBox not found in xmlns clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit on iOS

See original GitHub issue

Getting strange run-time exceptions on iOS as follows:

Xamarin.Forms.Xaml.XamlParseException: Position 98:34. Type input:CheckBox not found in xmlns clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit

Xaml code below in shared .Net 2.0 library works fine when running on Android:

xmlns:input="clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit"

<DataTemplate> <ViewCell> <Grid Margin="0,0,0,12"> <input:CheckBox Text="{Binding Name}" Type="Check" IsChecked="{Binding IsChecked}" BoxBackgroundColor="{StaticResource bgCheckBoxColor}" Color="{StaticResource fgLabelColor}" TextColor="{StaticResource fgLabelColor}"/> </Grid> </ViewCell> </DataTemplate>

Nuget Xamarin.Forms.InputKit package installed across all projects in solution including on the Xamarin.iOS project.

My suspicion is that the type might be getting linked out by the compiler?

Expected behavior No run-time exception.

Smartphone:

  • Device: iPhone6
  • OS: iOS 12.1.3

Additional context Xamarin.Forms.InputKit v2.3.8 and Xamarin.Forms 3.3.0.912540 Xamarin.iOS - 12.2.1.12

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
enisncommented, Mar 2, 2019

@SandipAhluwalia You are Right. I’ve just tried Xamarin Forms 3.2.x project. Linker doesn’t get ios library. XF 3.4x.x+ versions works fine but lower versions you’ll need Init like that until ı’ve update and add Init method:

Unfortunately the claim that

No more Init(); methods for your each platform !

in https://github.com/enisn/Xamarin.Forms.InputKit/wiki/Getting-Started seems to be untrue for at least iOS as I resolved the above issue by adding the following line of code in the FinishedLaunching override to stop the compiler linking out the library:

double fontSize = CheckBox.GlobalSetting.FontSize;

0reactions
enisncommented, Mar 8, 2019

@SandipAhluwalia Does problem continue at v3.0.0 with new Init() methods. (after following new set-up)


Read more comments on GitHub >

github_iconTop Results From Across the Web

I want to Display Square Checkbox on IOS ,IPad in xamarin ...
xmlns :input="clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit" <input:CheckBox Text="xxx" Type="Check"/>.
Read more >
Xamarin Forms Input Kit
This CheckBox is not a native one, It's created in Xamarin Forms Portable ... InputKit" xmlns:input="clr-namespace:Plugin.InputKit.Shared.
Read more >
Button/Check box with List item in Xamarin Forms ListView
Go through the below-mentioned steps to understand how to implement Xamarin Forms listview with CheckBox. Install the Xamarin.Forms.InputKit Nuget package in ...
Read more >
InputKit CheckBox - enisn-projects
A checkbox control that is useful, customizable, full-featured, fully-bindable and easy to use.
Read more >
Checking the new Checkbox in Xamarin.Forms 4.1 and ...
Reference the library's namespace in your XAML xmlns:input=”clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit”.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found