I'm building a XamMaskedEditor style that sets an event handler for the EditModeValidationErrorEvent. I can't figure out what EventHandler to use. If I use RoutedEventHandler (and RoutedEventArgs). I get a runtime error that the handler is invalid (which makes sense). I can't find an EditModeValidationErrorEventHandler class to build the delegate with.
How do I construct the event setter here?Thanks
Private Sub ApplyStyle()
Dim style As New Style(GetType(Infragistics.Windows.Editors.XamMaskedEditor)) style.Setters.Add(New EventSetter(XamMaskedEditor.EditModeValidationErrorEvent, New ????EventHandler(AddressOf ValidationError))) MyBase.EditorStyle = style End Sub
Private Sub ValidationError(sender As Object, e As EditModeValidationErrorEventArgs)
End Sub
Private Sub ApplyStyle() Dim style As New Style(GetType(XamMaskedEditor)) style.Setters.Add(New EventSetter(XamMaskedEditor.EditModeValidationErrorEvent, New EventHandler(Of EditModeValidationErrorEventArgs)(AddressOf Me.ValidationError))) Me.XME.Style = style End Sub
Thanks, I was looking everywhere for an EditModeValidationErrorEventHandler class.