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.

Unable to wrap Material.Components.Maui components

See original GitHub issue

Hi there. Trying to generate wrapper for the Material.Components.Maui library, but the generated code is invalid. image image image

As I see (1, 2), they inherit from SKTouchCanvasView, not from ContentView or else. Is it possible to generate wrappers for this library? Maybe with some workarounds in generator?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
adospacecommented, Mar 1, 2023

After further investigation, I found that MauiReactor had some bugs exploited by the mdc controls integration that I’ve now resolved in the new version. I’ve done some tests and it works fine now.

Still not sure of some mdc design decisions, for example, they set Vertical and Horizontal LayoutOptions inside styles. Also, I think they need to make more robust the measure pass more in order to avoid the creation of a canvas of infinite size leading to the above OOM. Anyway, given that one loads the resource dictionary containing the styles and pays attention to the layout options everything should work just fine.

BTW Your report helped a lot, thanks

1reaction
adospacecommented, Feb 28, 2023

I’ll create a sample project using that library and I’ll let you know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material design components for .NET MAUI
Material.Components.Maui · Documentation. mdc-maui.github.io/ · The available controls. : ready : unverified : needs help. control, android, windows ...
Read more >
Controls - .NET MAUI
. NET MAUI views are the UI objects such as labels, buttons, and sliders that are commonly known as controls or widgets in...
Read more >
Best practice of wrapping material components : r/Angular2
Hi guys,I'm currently trying to wrap material components for the sole purpose of not being dependent on it and being able to replace...
Read more >
Is there a way to wrap the content of a HorizontalStackLayout
Be it Horizintally or vertically, it stacks one item after another. It will never make an additional row if horizontal, or another column...
Read more >
NET MAUI Controls for Mobile Apps - FREE
A control suite for .NET MAUI ships with high-performance UI components. Includes a Data Grid, Scheduler, Charts, Tab View, Data Editors, Menu.
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