Clarify the relationship between IsVisible and the visual tree in .NET MAUI documentation #2666
Labels
doc-enhancement
Improve the current content [org]
dotnet-maui/subsvc
dotnet-mobile/svc
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Type of issue
Missing information
Description
The current documentation in the Performance Best Practices for .NET MAUI article states:
This statement can be misleading because, in reality:
Setting IsVisible to false does not remove the element from the visual tree.
The element remains in the visual tree but is excluded from rendering and layout calculations.
This is inconsistent with the more accurate explanation in the VisualElement.IsVisible API documentation, which states:
Suggested Action:
Clarify the performance article to specify that setting IsVisible to false excludes the element from rendering and layout calculations but keeps it in the visual tree for faster toggling.
This clarification would prevent misunderstandings about the behavior of the IsVisible property.
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/deployment/performance?view=net-maui-9.0#reduce-the-visual-tree-size
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/deployment/performance.md
Document Version Independent Id
5845bd05-2151-862c-9b29-1d76664a9f0d
Article author
@davidbritch
Metadata
Related Issues
Associated WorkItem - 359140
The text was updated successfully, but these errors were encountered: