This is a migrated thread and some comments may be shown as answers.

water hr team saravanan

1 Answer 25 Views
Chart
This is a migrated thread and some comments may be shown as answers.
vickranth
Top achievements
Rank 1
vickranth asked on 18 Mar 2009, 12:03 PM
Cannot find resource named '{DefaultCheckBoxStyle}'. Resource names are case sensitive.  Error at object 'System.Windows.Controls.CheckBox' in markup file 'ExampleControl;component/example.xaml' Line 141 Position 23.


in chart flexible Api program.


tell me the solution

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 23 Mar 2009, 08:43 AM
Hello vickranth,

The issue here comes from the fact, that the example uses common resources with the QSF. This is done to have coherent look of the whole QSF.

To fix it, just remove those styles from the xaml.
Example:
 <ComboBox Style="{StaticResource DefaultComboBoxStyle}" ItemContainerStyle="{StaticResource DefaultComboBoxStyleItem}" x:Key="FormatComboX"  SelectionChanged="ComboBox_SelectionChanged" SelectedValuePath="Content" /> 

Remove the Style="{StaticResource DefaultComboBoxStyle}", so the ComboBox becomes:

 <ComboBox ItemContainerStyle="{StaticResource DefaultComboBoxStyleItem}" x:Key="FormatComboX"  SelectionChanged="ComboBox_SelectionChanged" SelectedValuePath="Content" /> 

Do the same for all missing styles.

All the best,
Evtim
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart
Asked by
vickranth
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or