"RadRoutedEventArgs" could not be found

3 posts, 0 answers
  1. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 08 Jul 2010 Link to this post

    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. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 09 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 09 Jul 2010 Link to this post

    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.

Back to Top