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

"Value cannot be null. (Parameter 'animatable')" when trying to open custom SfNavigationDrawer #295

Closed
juliusdeblaaij opened this issue Feb 13, 2025 · 1 comment

Comments

@juliusdeblaaij
Copy link

Describe the bug
I am trying to implement the third party SfnavigationDrawer component;

The following scafflowing is required:

[Scaffold(typeof(Syncfusion.Maui.NavigationDrawer.SfNavigationDrawer))]
public partial class SfNavigationDrawer
{
}

[Scaffold(typeof(Syncfusion.Maui.Core.Internals.SfNavigationDrawerExt))]
public partial class SfNavigationDrawerExt
{
}

To Reproduce
Steps to reproduce the behavior:

  1. Implement the aforementioned scaffolding code. (using Syncfusion.Maui.NavigationDrawer nuget package, and a trial or development license key): getting started with SfNavigationDrawer
  2. Add the new SfNavigationDrawer to a page. i.e.:
    new Components.SfNavigationDrawer().DrawerSettings(new DrawerSettings() { Position = Position.Right, DrawerWidth = 300 })
  3. When .IsOpen(true) is added to the component, the application fails to start and I see the exception: "Value cannot be null. (Parameter 'animatable')"

Expected behavior
The navigation drawer must open because IsOpen is set to true.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: N.A.
  • Version:
    Edition Windows 11 Home
    Version 24H2
    Installed on ‎14/‎12/‎2024
    OS build 26100.3194
    Experience Windows Feature Experience Pack 1000.26100.48.0

Additional context
I am not sure if this is an error in the source generator such that field isnt set, or that I miss a bit of scaffolding. If there is a way to disable animating this component, if that solves the issue I will be more than happy with that.

@adospace
Copy link
Owner

Hi,
There's nothing wrong with your code, it's just missing the DrawerSettings part.

I know it's challenging to create wrappers for complex controls so I've made a repository full of implementations for the most famous third-party controls available for .NET MAUI.

I've created a scaffold of the drawer here:
https://github.com/adospace/mauireactor-integration/blob/main/Syncfusion/SfIntApp/Pages/NavigationDrawerPage.cs

Image

If you have other scaffolding issues do not hesitate to open a ticket here and I'll work on it asap ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants