ItemSelectedEventArgsConverter not found in schema

Richard Leonard 21 Reputation points
2021-05-20T23:13:01.653+00:00

I am using ItemSelectedEventArgsConverter on one page in my application. Everything works ok when using the iPhone emulator but when I push the build to test on a physical iPhone when i hit the page in question I get an error "Type xct: ItemSelectedEventArgsConverter not found in xmlns http://xamarin.com/schema"

<?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:local="clr-namespace:CertsAssured.Resources;assembly=CertsAssured"
             xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
             x:Class="CertsAssured.View.AssetSearchResultPage"
             Visual="Material"
             x:Name="AssetSearchResults">
    <ContentPage.Padding>
        <OnPlatform x:TypeArguments="Thickness"
                iOS="0, 20, 0, 0" />
    </ContentPage.Padding>
    <ContentPage.Resources>
        <ResourceDictionary>
            <local:StringToColourConverter x:Key="StringToColourConverter">
            </local:StringToColourConverter>
            <xct:ItemSelectedEventArgsConverter x:Key="ItemSelectedEventArgsConverter" />
        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <StackLayout Orientation="Vertical" Padding="10">
            <ListView ItemsSource="{ Binding Assets }"
                      HasUnevenRows="True">
                <ListView.Behaviors>
                    <xct:EventToCommandBehavior
                        EventName="ItemSelected"
                        Command="{ Binding AssetSelectedCommand }"
                        EventArgsConverter="{StaticResource ItemSelectedEventArgsConverter}" />
                </ListView.Behaviors>
                <ListView.ItemTemplate>
                    <DataTemplate>
......

Any ideas what could be causing this, I have "Link Framework SDKs Only" as Linker behaviour.

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.