GridViewBoundColumnBase Silverlight event

1 posts, 0 answers
  1. Pavel
    Pavel avatar
    3 posts
    Member since:
    Aug 2012

    Posted 31 Aug 2012 Link to this post

    Hello experts,

    I created the new control in my "RadGridView" using "public override FrameworkElement CreateCellEditElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)" (class MyColumn : GridViewBoundColumnBase) and have some event. I don't have any troubles in desktop mode.

    public static RoutedEvent ClickEvent =
      EventManager.RegisterRoutedEvent("Click", RoutingStrategy.Bubble, typeof(MyRoutedEventArgs), typeof(MyColumn)); 

    public event RoutedEventHandler Click
    {
    add { AddHandler(ClickEvent, value); }
    remove { RemoveHandler(ClickEvent, value); }
    }

    ......

    MyControl.ButtonClicked += new EventHandler<RoutedEventArgs>(_editor_ButtonClicked);

    ......

    void _editor_ButtonClicked(object sender, RoutedEventArgs e)
    {
       RoutedEventArgs newEventArgs = new MyColumnRoutedEventArgs(ClickEvent, Cell);
       RaiseEvent(newEventArgs);
    }

    and etc..

    But how can I implement the same functionality for Silverlight ?

Back to Top