/// <summary> /// After creating the new custom user MyRoutedEventArgs /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CustomControlLib_Click(object sender, MyRoutedEventArgs e) { var data = e.Param; }
protected virtual void RaiseClickEvent() { MyRoutedEventArgs args = new MyRoutedEventArgs(CustomControlLib.ClickEvent, "Test"); RaiseEvent(args); }