How to Hide the check boxes in the GraphHost control?

Nov 25, 2009 at 12:48 PM


                     I am working on the Graphing controls of Microsoft.Cui.Controls assembly. When Using the patient graph, I could find the properties to Show/Hide the checkboxes that list all the Graphs at the top of the control.

                     Could you tell me how to customize these check boxes?



Kaleth Quraizy


Jan 22, 2010 at 10:08 AM

hi again Kaleth

There are no properties to show/hide the checkboxes, You can customize the checkbox style by editing the control template for the GraphHost control.

To customize the style of the checkboxes, please follow the following steps

1. Open the solution in Expression Blend

2. Open the page containing the GraphHost control and select the GraphHost control.

3. Right click on the GraphHost control and select the option "Edit Template --> Edit a copy", and when prompted select "Ok". This will generate a copy of the control template and store locally.

4. Switch to XAML view and find the data template with the key "DataSelectorItemTemplate". You can edit the checkbox in this template to have new style.

You can also see the section "How to get the existing ControlTemplate" from the following blog for extracting the control template.