dotnet / dotnet/dotnet-api-docs

Constraints on WPF CollectionContainer.Source

Aperta
#5,385 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area-WPF Pri3 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

After some research I found out why my bindings on a CollectionContainer (see https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Data/CollectionContainer.xml ) don't work.
Found a workaround in https://social.msdn.microsoft.com/Forums/vstudio/en-US/b15cbd9d-95aa-47c6-8068-7ae9f7dca88a/collectioncontainer-does-not-support-relativesource?forum=wpf and I'm not sure this is fixed in more up to date versions of WPF (currently we're still on .NET Framework).

The current documentation in https://docs.microsoft.com/en-us/dotnet/api/system.windows.data.collectioncontainer.collection?view=net-5.0#xaml-text-usage suggests,
"In XAML, you can use the Binding syntax to bind to a collection. For more information, see the Binding type."

This obviously isn't helpful when only a very small subset is supported.
That should be mentioned IMHO.

Unfortunately as I'm not sure about the exact restrictions (beyond what's in the social.msdn article linked above) I don't feel comfortable to propose a valid text here.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la voce CollectionContainer.xml e la documentazione della relativa proprietà Collection, quindi confronta l’uso attuale del testo XAML con la soluzione alternativa MSDN collegata. Verifica quali forme di Binding e RelativeSource sono supportate prima di documentare le restrizioni; il lavoro è completo quando il riferimento API non implica più che ogni forma di Binding funzioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.