I have a UserControl that contains a RadPropertyGrid and one of the property definitions for the RadPropertyGrid has the EditorTemplate set to a DataTemplate that contains a RadComboBox. When I run the application, I get the following exception:
Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
If I add a RadComboBox to the UserControl, the RadComboBox displays just fine.
What am I missing?
Here is the XAML:
In the UserControl's Loaded event handler, I have code similar to the following:
Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
If I add a RadComboBox to the UserControl, the RadComboBox displays just fine.
What am I missing?
Here is the XAML:
<
UserControl
x:Class
=
"Company.KendoJavaScriptExtension.MyControl"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:Company.KendoJavaScriptExtension"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
Name
=
"MyToolWindow"
Loaded
=
"MyToolWindow_Loaded"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.Resources
>
<
DataTemplate
x:Key
=
"comboboxTemplate"
>
<
telerik:RadComboBox
/>
</
DataTemplate
>
</
Grid.Resources
>
<
telerik:RadPropertyGrid
x:Name
=
"propertyGrid"
Loaded
=
"propertyGrid_Loaded"
/>
</
Grid
>
</
UserControl
>
In the UserControl's Loaded event handler, I have code similar to the following:
this
.propertyGrid.PropertyDefinitions[5].EditorTemplate = LayoutRoot.Resources[
"comboboxTemplate"
]
as
DataTemplate;