Hello, I am trying to use the following event handler from one of the demos:
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:
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.
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.