IsRegisterPreviewKeyDownChar() private méthode

private IsRegisterPreviewKeyDownChar ( char c ) : bool
c char
Résultat bool
Exemple #1
0
 internal static bool NotifyPreviewKeydown(TextSurfaceEventListener listener, char c)
 {
     if (listener.IsRegisterPreviewKeyDownChar(c))
     {
         if (listener.PreviewRegisteredKeyDown != null)
         {
             TextDomEventArgs e = new TextDomEventArgs(c);
             listener.PreviewRegisteredKeyDown(listener, e);
             return(e.PreventDefault);
         }
     }
     return(false);
 }
 internal static bool NotifyPreviewKeydown(TextSurfaceEventListener listener, char c)
 {
     if (listener.IsRegisterPreviewKeyDownChar(c))
     {
         if (listener.PreviewRegisteredKeyDown != null)
         {
             TextDomEventArgs e = new TextDomEventArgs(c);
             listener.PreviewRegisteredKeyDown(listener, e);
             return e.PreventDefault;
         }
     }
     return false;
 }