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 ?