dotnet / dotnet/dotnet-api-docs
What cause the assignement of parent
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
I juggle with ToolstripItem between different ContextMenuStrip. I found when I add the first item (which come from another ContextMenuStrip) the GetGurrentParent() return null. When I add the second item, then the first item got a parent assigned but second not. Same now for second item, when a third item is added, the parent for second is assign.
So I add a fake item and removed it, but is there a good way to refresh the parent?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 5ee4ee64-a4ad-e05a-e060-504f3b396e9c
* Version Independent ID: dbc0e190-e521-0d35-340e-8a44ca40c5fc
* Content: [ToolStripItem.Parent Property (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.toolstripitem.parent?view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Forms/ToolStripItem.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/ToolStripItem.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Leggi prima xml/System.Windows.Forms/ToolStripItem.xml e la pagina API Parent collegata; confronta il comportamento documentato di Parent con la sequenza ContextMenuStrip segnalata. Il payload non indica alcun punto di ingresso per test o implementazione, quindi sarebbe necessario chiarire se il risultato richiesto sia una guida alla documentazione o una correzione del prodotto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- desktop, documentation
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100