Skip to content

System.ArgumentException: 'An item with the same key has already been added. Key: Maui.FreakyEffects.TouchEffects.TouchRoutingEffect' #21

@Daaavidp8

Description

@Daaavidp8

I wanted to test touch effects but i just got this error.

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:translation="clr-namespace:ViewScreen.Utils.Translations"
             xmlns:touchEffects="clr-namespace:Maui.FreakyEffects.TouchEffects;assembly=Maui.FreakyEffects"
             x:Class="ViewScreen.Pages.Layouts.ProfilePageComponents.LogOutDialog"
             BackgroundColor="Transparent">
    <Border 
    Padding="20"
    StrokeShape="RoundRectangle 20"
    Background="{DynamicResource MainBackground}"
    HorizontalOptions="Center"
    VerticalOptions="Center"
    WidthRequest="300">

        <VerticalStackLayout Spacing="20">

            <Label 
            Text="{translation:Translate Name=LogOutQuestion}" 
            FontAttributes="Bold"
            FontSize="Medium"
            HorizontalOptions="Center"
            HorizontalTextAlignment="Center" />

            <HorizontalStackLayout 
            Spacing="20" 
            HorizontalOptions="Center">

                <VerticalStackLayout 
                      touchEffects:TouchEffect.Color="Black">
                    <Label Text="{translation:Translate Name=CancelText}"/>
                </VerticalStackLayout>



                <!--<Button 
                Text="{translation:Translate Name=CancelText}"
                BackgroundColor="{DynamicResource MainBackground}"
                TextColor="{DynamicResource Primary}"
                Clicked="DismissButtonClicked" />

                <Button 
                Text="{translation:Translate Name=AcceptText}"
                BackgroundColor="{DynamicResource MainBackground}"
                TextColor="{DynamicResource Primary}"
                Clicked="ConfirmButtonClicked" />-->

            </HorizontalStackLayout>

        </VerticalStackLayout>
    </Border>

</ContentView>

If you could help i would be glad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions