❔ ✅ WPF How to delete Textbox from parent and memory.
After struggling for awhile to find out why
(i never learned how, i just changed to targeting the parent directly with
i am now struggling to find out how to delete from memory as
How do i delete a textbox from memory in WPF?
And also although i found a workaround, why does
(I get no definition for controls). I even tried
Grid.Parent.Controls.Remove wasn't accepting parent.(i never learned how, i just changed to targeting the parent directly with
Parent.Children.Remove) i am now struggling to find out how to delete from memory as
Grid.Dispose(); Doesn't work. I get textbox doesn't have a definition for dispose. How do i delete a textbox from memory in WPF?
And also although i found a workaround, why does
Target.Parent.Controls.Remove return a error anyway? I assume its because its a winforms command and not WPF, but i've been told it is infact a WPF command. Grid.Parent.Children.Remove(Grid); and i still get a error. Considering Grid.Children.Remove is working, this is rather strange to me.