Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Use button click i can't Remove STL object from HelixViewport3D. Plese help me ....

What I have tried:

C#
private void Button_Click(object sender, RoutedEventArgs e)
       {
           viewPort3d.Children.Remove(model);
       }
Posted
Updated 6-Feb-23 18:25pm
v2
Comments
Andre Oosthuizen 7-Feb-23 4:05am    
Your code is perfect for removing a model, not sure where your problem lies with only this 1 line of code. Maybe you have a name conflict for the model, not sure?
[no name] 7-Feb-23 15:27pm    
You don't confirm there are children in the first place. And we have no idea what "model" points to. Your question, as posted, has no answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900