This question is locked. New answers and comments are not allowed.
I'm creating a RadToolBar user control. When I run the control in my application I get the below error.
Error:
{System.Windows.Markup.XamlParseException: The type 'RadToolBarTray' was not found. [Line: 8 Position: 63] ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Application.Presentation.Controls.DataSetToolBarCtrl.InitializeComponent()
at Application.Presentation.Controls.DataSetToolBarCtrl..ctor()}
My simple RadToolBar Xaml:
Telerik Build:
(v.2011.3.1220.1040 Trial)
Thank you for your help.
Error:
{System.Windows.Markup.XamlParseException: The type 'RadToolBarTray' was not found. [Line: 8 Position: 63] ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Application.Presentation.Controls.DataSetToolBarCtrl.InitializeComponent()
at Application.Presentation.Controls.DataSetToolBarCtrl..ctor()}
My simple RadToolBar Xaml:
<
UserControl
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikQuickStart
=
"clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
x:Class
=
"Application.Presentation.Controls.DataSetToolBarCtrl"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
>
<
telerik:RadToolBarTray
VerticalAlignment
=
"Center"
Margin
=
"10,0,0,0"
>
<
telerik:RadToolBar
>
<
Button
Tag
=
"Print"
x:Name
=
"btnPrintGrid"
ToolTipService.ToolTip
=
"Print Grid"
>
<
Image
Width
=
"16"
Height
=
"16"
Source
=
"/Application.Client;component/Images/print.png"
/>
</
Button
>
<
Button
Tag
=
"Excel"
x:Name
=
"btnExportGrid"
ToolTipService.ToolTip
=
"Export Grid to Excel"
>
<
Image
Width
=
"16"
Height
=
"16"
Source
=
"/Application.Client;component/Images/excel.png"
/>
</
Button
>
</
telerik:RadToolBar
>
</
telerik:RadToolBarTray
>
</
UserControl
>
Telerik Build:
(v.2011.3.1220.1040 Trial)
Thank you for your help.