I have created a custom control derived from RadCombobox. It compiles and runs fine in Visual Studio. But if I use Expression Blend to view a screen containing my custon control, I receive a design time error stating "Object reference not set to an instance of an object". This happens even if the derived class contains an insignificant amount of code. If I place RadCombobox directly on the screen (e.g. without wrapping it in a custom control), it shows up fine.
Here is my custom control:
Here is my xaml:
<Grid>
<StackPanel>
<telerik:RadComboBox Height="30" Width="200" Background="LightBlue"/>
<cc:ccComboBox Height="30" Width="200" Background="LightBlue"/>
<cc:ccDatePicker />
</StackPanel>
</Grid>
Only the ccComboBox xaml causes the error. ccDatePicker is derived from RadDatePicker and works fine.
Any help is greatly appreciated.
Doug
Here is my custom control:
public class ccComboBox : RadComboBox { public int i; }
Here is my xaml:
<Grid>
<StackPanel>
<telerik:RadComboBox Height="30" Width="200" Background="LightBlue"/>
<cc:ccComboBox Height="30" Width="200" Background="LightBlue"/>
<cc:ccDatePicker />
</StackPanel>
</Grid>
Only the ccComboBox xaml causes the error. ccDatePicker is derived from RadDatePicker and works fine.
Any help is greatly appreciated.
Doug