Skip to content

The warning of XLS1111 appears once open MAUI App file Resources\Styles\Styles.xaml #31146

@v-yanfw

Description

@v-yanfw

Description

The warning of XLS1111 “'ListView' is obsolete: 'Please use CollectionView instead.'.” appears once open Resources\Styles\Styles.xaml
There is a similar issue for .NET 9 #29218, the content of XLS1111 is "'Frame' is obsolete: 'Frame is obsolete as of .NET9. Please use Border instead.'"

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. Open file Resources\Styles\Styles.xaml

Expected outcome: No errors or warnings.
Actual outcome: Warning of XLS1111 appears.

Image <style> </style>
Severity Code Description Project File Line Suppression State
Warning XLS1111 'ListView' is obsolete: 'Please use CollectionView instead.'. MauiApp11 C:\Users\v-yanfw\source\repos\MauiApp11\MauiApp11\Resources\Styles\Styles.xaml 194  

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.7

Is this a regression from previous behavior?

Yes, repro on 10.0.100-preview.5.25277.114

Did you find any workaround?

If we change “ListView” to “CollectionView ” as suggested by Warning XLS1111 info on VS latest main branch build Version 18.0.0 Preview 1.0 [10911.176.main] (.NET 10 version: 10.0.0-preview.7.25380.108), 2 new errors will appear:

Image

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviorsi/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationregressed-in-10-preview3s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions