//------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        /// <summary>
        /// Constructor for notification event args.
        /// </summary>
        /// <param name="notificationKind">Specifies the type of the notification.</param>
        /// <param name="notificationProcessing">Specifies the order in which to process the notification.</param>
        /// <param name="displayString">A display string describing the event.</param>
        /// <param name="activityId">A unique non-localized string to identify an action or group of actions. Use this to pass additional information to the event handler.</param>
        public NotificationEventArgs(AutomationNotificationKind notificationKind,
                                     AutomationNotificationProcessing notificationProcessing,
                                     string displayString,
                                     string activityId)
            : base(AutomationElementIdentifiers.NotificationEvent)
        {
            NotificationKind       = notificationKind;
            NotificationProcessing = notificationProcessing;
            DisplayString          = displayString;
            ActivityId             = activityId;
        }
Exemple #2
0
 public NarratorAnnouncement(
     string announcement,
     string activityId,
     AutomationNotificationKind kind,
     AutomationNotificationProcessing processing)
 {
     m_announcement = announcement;
     m_activityId   = activityId;
     m_kind         = kind;
     m_processing   = processing;
 }
Exemple #3
0
 internal static void UiaRaiseNotificationEvent(IRawElementProviderSimple provider,
                                                AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string displayString, string activityId)
 {
     CheckError(RawUiaRaiseNotificationEvent(provider, notificationKind, notificationProcessing, displayString, activityId));
 }
Exemple #4
0
 private static extern int RawUiaRaiseNotificationEvent(IRawElementProviderSimple provider,
                                                        AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string displayString, string activityId);
Exemple #5
0
 public bool RaiseAutomationNotification(AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string notificationText)
 {
     throw null;
 }
Exemple #6
0
 public static extern HRESULT UiaRaiseNotificationEvent(
     IRawElementProviderSimple provider,
     AutomationNotificationKind notificationKind,
     AutomationNotificationProcessing notificationProcessing,
     [MarshalAs(UnmanagedType.BStr)] string displayString,
     [MarshalAs(UnmanagedType.BStr)] string activityId);
Exemple #7
0
 public static extern int UiaRaiseNotificationEvent(
     IRawElementProviderSimple provider,
     AutomationNotificationKind notificationKind,
     AutomationNotificationProcessing notificationProcessing,
     string notificationText,
     string notificationGuid);