Closed MattePozzy closed 1 year ago
Hi, I think you're over complicating things, you should never directly call internal methods like OnMount or set native properties. In your case you should never try to read the autosize property, but only set it. If you need to manage the autosize value then probably you need to store it in the component state. I strongly encourage you to first learn to use the component based model or MVU approach trying to not use/mix it with MVVM or imperative models. Start creating sample apps that do not require custom scaffolding, before accessing a native control try to see if there's an alternative way. Also take a look at the numerous samples you can find on my repositories here.
Yes you are right. I have to switch a complex xamarin forms'app to MAUI and i wanted to use MVU approach but i am very new to it. Unfortunately many custom components had been made on xamarin and I have to translate them to MVU so I need to use scaffolding.
I will look at your examples and study the MVU approach better. Thank you!
Hi, I have create this scaffold method:
The original component![image](https://github.com/adospace/reactorui-maui/assets/7420345/b9ba6abc-83e6-447c-b42c-d88b9c48e8fd)
SfPopup
has a property called AutoSizeMode, with get and set. This property has been translated to the method AutoSizeMode but in this way I am unable to get the setted value.There is a way to solve this issue?
Thank you.