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

"RadRoutedEventArgs" could not be found

2 Answers 86 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 08 Jul 2010, 10:42 PM
Hello, I am trying to use the following event handler from one of the demos:

 

 

private void OnRadMenuItemClick(object sender, RoutedEventArgs e)

 

{

RadRoutedEventArgs args = e

 

as RadRoutedEventArgs;

 

 

 

RadMenuItem item = args.OriginalSource as RadMenuItem;

 

 

 

if (item != null)

 

{

txtB.Text =

 

"You clicked '" + item.Header.ToString() + "'";

 

}

}


I keep getting a message that "RadRoutedEventArgs" could not be found and I am missing a reference.   I have the following at the top of my page:

using

 

 

STSilver.ServRef;

 

using

 

 

System;

 

using

 

 

System.Collections.Generic;

 

using

 

 

System.Linq;

 

using

 

 

System.Net;

 

using

 

 

System.Windows;

 

using

 

 

System.Windows.Controls;

 

using

 

 

System.Windows.Documents;

 

using

 

 

System.Windows.Input;

 

using

 

 

System.Windows.Media;

 

using

 

 

System.Windows.Media.Animation;

 

using

 

 

System.Windows.Shapes;

 

using

 

 

Telerik.WebUI;

 

using

 

 

Telerik.Windows.Controls;

 

using

 

 

Telerik.Windows.Controls.GridView;

 



What am I missing?

I am using "RadControls for Silverlight Q1 2010 SP2" in VS2010 /w Silverlight 4.0.   I tried to create a brand new project but had the same result.

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 09 Jul 2010, 08:06 AM
Hi Kjell,

RadRoutedEventArgs is located in Telerik.Windows namespace.

Best wishes,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kjell
Top achievements
Rank 1
answered on 09 Jul 2010, 08:13 AM
Thanks, I saw that but for some reason I thought that was in my list.  I just needed someone to point out the obvious for me, thanks again.

Tags
Menu
Asked by
Kjell
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or