dotnet / dotnet/dotnet-api-docs
System.Windows.Forms.Form missing event hierarchy descriptions
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 950
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
Starting from the fact that, not calling the `base.OnLoad()` method in classes derived from the [System.Windows.Forms.Form](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form) class, a whole bunch of events does not get raised either, gives lots of unexpected behaviors. I can and would expect for example that the Load event will not be raised when I override `OnLoad` and not call the base implementation, but I would never expect that the Shown event is also not raised in this situation. And who knows what other events are affected.
Current documentation is completely lacking those details. A detailed hierarchy of events and when they are raised/not raised from they base class implementations in the Form class would be very helpful.
The current note like "_When overriding OnLoad(EventArgs) in a derived class, be sure to call the base class's OnLoad(EventArgs) method so that registered delegates receive the event._" does not suffice because it also affects other events
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il riferimento all'API di System.Windows.Forms.Form e con la nota esistente su OnLoad(EventArgs). Esamina la documentazione correlata agli eventi di Form e identifica quali eventi dipendono dalle implementazioni della classe base. Il lavoro è completato quando il riferimento spiega la gerarchia degli eventi e quando gli override derivati devono chiamare l'implementazione della classe base.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100