Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to include reference to MAUI Tookit #25937

Closed
lperezj opened this issue Nov 19, 2024 · 2 comments
Closed

Error to include reference to MAUI Tookit #25937

lperezj opened this issue Nov 19, 2024 · 2 comments
Labels
t/bug Something isn't working

Comments

@lperezj
Copy link

lperezj commented Nov 19, 2024

Description

I can´t build if add in XAML the reference to xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" and include a Behavior

<Frame.Behaviors>
<xct:TouchBehavior DefaultAnimationDuration="250"
DefaultAnimationEasing="{x:Static Easing.CubicInOut}"
PressedOpacity="0.6"
PressedScale="0.8" />
</Frame.Behaviors>

Image

Steps to Reproduce

Hi, im trying to migrate from Xamarin.Forms to MAUI my current proyect and i have a problem to migrate the TouchEvents.

I did all the steps in https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/

  1. I add the NuGet package
  2. I add the code line in CreateBuilder
.UseMauiApp<App>()
.UseMauiCommunityToolkit(options =>
{
    options.SetShouldSuppressExceptionsInConverters(false);
    options.SetShouldSuppressExceptionsInBehaviors(true);
    options.SetShouldSuppressExceptionsInAnimations(false);
}) 
  1. I included the reference in XAML
<Frame xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
       xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
       xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"

4 And the TouchBehavior

<Frame.Behaviors>
    <xct:TouchBehavior DefaultAnimationDuration="250"
                       DefaultAnimationEasing="{x:Static Easing.CubicInOut}"
                       PressedOpacity="0.6"
                       PressedScale="0.8" />
</Frame.Behaviors>

But visual studio not display any exception, error or warning in code, but when i try to build the project/solution, throw the exception

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@lperezj lperezj added the t/bug Something isn't working label Nov 19, 2024
@jfversluis
Copy link
Member

Duplicate of one of these: https://github.com/CommunityToolkit/Maui/issues?q=is%3Aissue%20state%3Aclosed%20XFC0000

This is a Toolkit issue, I think one of the issues in the above query should help you resolve it. If not, please open something on that repository.

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@jfversluis
Copy link
Member

Additionally: #9781

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants