maui
maui copied to clipboard
Performance issue while converting the datatemplate into view
Description
In our custom control, we convert the DataTemplate into a view and add it to the UI. However, we have noticed that the conversion of complex DataTemplates takes more time to render the UI compared to simple ones on Windows and MacOS. In Android and iOS the performance remains high regardless of whether the DataTemplate is simple or complex. We achieve this by utilizing the CreateContent() method for template conversion.
Steps to Reproduce
- Run the Sample.
- Click the button in the view.
- It took more time to render the UI (which a custom view data template)
Link to public reproduction project repository
Version with bug
7.0.92
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
iOS 16, windows, android 11 and MacOS
Did you find any workaround?
no
Relevant log output
No response