Syntax error in DropDownButton.cs

Aperta
#1,755 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
desktop

Direzione di ricerca

Start in DropDownButton.cs at the GetContextMenu event handler and inspect the reported condition and nearby declarations. Build the project to reproduce the syntax and name-resolution errors, then verify that the handler compiles without an undeclared children reference and that the relevant context-menu behavior remains intact.

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

Descrizione

This line in the GetContextMenu event handler:

if( child is FrameworkElement children && children.ContextMenu != null && children.ContextMenu.IsOpen )

will not compile. I'm not sure what "children" is supposed to represent, as there is no matching declaration in the module, nor is it an argument passed to the event handler. When I remove the first "children" from the line, the syntax error goes away, but I'm still left with a "name does not exist in this context" issue for "children." I'm not sure enough of the intent of this code to fix the problem without asking for advice.

Lingua principale
C#
Stelle
4.2k
Fork
912
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di xceedsoftware/wpftoolkit

Tutte le issue di xceedsoftware/wpftoolkit

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.