c# - How to remove dynamically created controls -


i able create controls dynamically, once job on need remove , add new ones. have no idea how remove content panel.

i have used following code add textbox:

textblock tb= new textblock(); tb.text = "hello"; contentpanel.children.add(tb); 

in wpf children property uielementcollection , has clear() , remove() methods. assume it's same on phone.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -