TerminalGuiDesigner renames some controls i changed name on already #211
Replies: 2 comments
-
Within the designer you can rename menu items by using You can rename in VSCode manually but you will also need to update the this.miBlahBlahBlah = new Terminal.Gui.MenuItem();
this.miBlahBlahBlah.Data = "miBlahBlahBlah"; Let me know if this does not resolve your problem. The reason it happens is because the designer compiles the .Designer.cs code and then looks at the runtime instances |
Beta Was this translation helpful? Give feedback.
-
Thanks, with the Rename, i could change it in the TGD and it stuck to the name i wanted. |
Beta Was this translation helpful? Give feedback.
-
Hi.
It seems that every time i run TGD and open ./MyView.cs, it loads everything, but renames a few menuItems to its old/default name.
In the TGD, i have trouble/impossible to open the contect menu to access the sub-menuitem to change name and such there.
But i have in VSCode renamed all references to "menuItem" to "bitMenuStopMusic" and the program compiles, next time i edit using TGD and save, this name is reverted (among 2 other items too)
Beta Was this translation helpful? Give feedback.
All reactions