private void Do_Work_Click(object sender, RoutedEventArgs e) { // do work method will trigger the registered method in callback m_GeneralLib.Work(); }