maui icon indicating copy to clipboard operation
maui copied to clipboard

Performance issue while converting the datatemplate into view

Open saiganesh-sakthivel opened this issue 1 year ago • 8 comments

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

  1. Run the Sample.
  2. Click the button in the view.
  3. It took more time to render the UI (which a custom view data template)

Link to public reproduction project repository

MauiApp1.zip

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

saiganesh-sakthivel avatar Sep 22 '23 11:09 saiganesh-sakthivel