2
Answers

Draw graphics in a 3D graph

Kelvin Loke

Kelvin Loke

17y
4.9k
1
Hi, I´m having some problems when it comes to draw some points in a 3D (x,y,z) graph, I don´t know how to draw the 3D graph, I´ve been looking throu the internet and didn´t find any method for it... does anyone know a way to solve my problem? Thank you very much.
Answers (2)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 15y
I saw your question about using a listbox of checkboxes and that is a better solution.
0
Piotr Justyna

Piotr Justyna

NA 122 0 15y
Person,

I don't think there is a technical posibility to do what you want. This sounds a bit like breaking all best practices :) If you insist (and you don't want to extent your class), you can also keep a separate list of Bools for every checkbox and keeping up to date subscribing to each checkbox click event.

Please let me know if this was helpful.
0
person

person

NA 96 0 15y
Yes having a property ischecked on the objects would work.......however I dont want to do this (ill mark you as accepted for your input).

Basically the itemtemplate contains the checkboxes, i dont see why i can access these even though the itemssource of the combobox is a collection of people. Essentially each person object has its name bound to the checkbox content property, is there no -- (combobox.Items[0].HostingComponent as CheckBox).IsChecked???

Thanks greatly in advance.

Person.
0
Piotr Justyna

Piotr Justyna

NA 122 0 15y
Dear Person,

please try to extend your collection's items with a property "IsChecked" bound to a "IsChecked" status of each checkbox.
0
person

person

NA 96 0 15y
Of course!! However I need multiple selected items in the combo box, I know that I can code my own events etc so that I can hold ctrl and the combo will stay open etc etc however its much nicer to have a compact CheckedBox ComboBox.

Thanks,

Person
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 15y
Are you sure you must use checkboxes in the combobox? The checkboxes seem unnecessary.

You can use the SelectedItem member to get the selected item without using a checkbox.