Click here to Skip to main content
14,638,900 members

Adding checkbox in WPF

hamid18 asked:

Open original thread
I need a suggestion. In my program the user select a file and different graphs are drawn as a output for that file. I want the user to give the choice of selecting the graph which graph he wants to see. Suppose he only wants to see 2 graphs,then he will check 2 checkboxes. Everytime he will check a new checkbox a new graph will be drawn.when he will uncheck a particular checkbox that graph will be vanished from the screen.
Should I only use a StackPanel and inside it different checkboxes? or i should use a listBox.
I am not sure which option is better in my case. Could you please help me.

What I have tried:

I have not implemented anything so far. I just need to know what should I use.
Tags: C#, WPF

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100