Пример #1
0
        internal static object UiaGetReservedMixedAttributeValue()
        {
            object result;

            UiaCoreTypesApi.CheckError(UiaCoreTypesApi.RawUiaGetReservedMixedAttributeValue(out result));
            return(result);
        }
Пример #2
0
        internal static object UiaGetReservedNotSupportedValue()
        {
            object result;

            UiaCoreTypesApi.CheckError(UiaCoreTypesApi.RawUiaGetReservedNotSupportedValue(out result));
            return(result);
        }
Пример #3
0
 static AutomationIdentifierConstants()
 {
     if (OSVersionHelper.IsOsWindows10RS2OrGreater)
     {
         LastSupportedProperty      = Properties.Size;
         LastSupportedEvent         = Events.Changes;
         LastSupportedPattern       = Patterns.CustomNavigation;
         LastSupportedTextAttribute = TextAttributes.SayAsInterpretAs;
         LastSupportedControlType   = ControlTypes.AppBar;
     }
     else if (OSVersionHelper.IsOsWindows10RS1OrGreater)
     {
         LastSupportedProperty      = Properties.FullDescription;
         LastSupportedEvent         = Events.Changes;
         LastSupportedPattern       = Patterns.CustomNavigation;
         LastSupportedTextAttribute = TextAttributes.CaretBidiMode;
         LastSupportedControlType   = ControlTypes.AppBar;
     }
     else if (OSVersionHelper.IsOsWindows10TH2OrGreater)
     {
         LastSupportedProperty      = Properties.LocalizedLandmarkType;
         LastSupportedEvent         = Events.TextEdit_ConversionTargetChanged;
         LastSupportedPattern       = Patterns.CustomNavigation;
         LastSupportedTextAttribute = TextAttributes.CaretBidiMode;
         LastSupportedControlType   = ControlTypes.AppBar;
     }
     else if (OSVersionHelper.IsOsWindows10OrGreater)
     {
         LastSupportedProperty      = Properties.AnnotationObjects;
         LastSupportedEvent         = Events.TextEdit_ConversionTargetChanged;
         LastSupportedPattern       = Patterns.CustomNavigation;
         LastSupportedTextAttribute = TextAttributes.CaretBidiMode;
         LastSupportedControlType   = ControlTypes.AppBar;
     }
     else if (OSVersionHelper.IsOsWindows8Point1OrGreater)
     {
         LastSupportedProperty      = Properties.IsPeripheral;
         LastSupportedEvent         = Events.TextEdit_ConversionTargetChanged;
         LastSupportedPattern       = Patterns.TextEdit;
         LastSupportedTextAttribute = TextAttributes.CaretBidiMode;
         LastSupportedControlType   = ControlTypes.AppBar;
     }
     else if (OSVersionHelper.IsOsWindows8OrGreater)
     {
         LastSupportedProperty      = Properties.FlowsFrom;
         LastSupportedEvent         = Events.DropTarget_Dropped;
         LastSupportedPattern       = Patterns.DropTarget;
         LastSupportedTextAttribute = TextAttributes.CaretBidiMode;
         LastSupportedControlType   = ControlTypes.SemanticZoom;
     }
     else if (OSVersionHelper.IsOsWindows7OrGreater ||
              (OSVersionHelper.IsOsWindowsVistaOrGreater && UiaCoreTypesApi.SupportsWin7Identifiers()))
     {
         LastSupportedProperty      = Properties.IsSynchronizedInputPatternAvailable;
         LastSupportedEvent         = Events.InputDiscarded;
         LastSupportedPattern       = Patterns.SynchronizedInput;
         LastSupportedTextAttribute = TextAttributes.UnderlineStyle;
         LastSupportedControlType   = ControlTypes.Separator;
     }
     else
     {
         LastSupportedProperty      = Properties.TransformCanRotate;
         LastSupportedEvent         = Events.Window_WindowClosed;
         LastSupportedPattern       = Patterns.ScrollItem;
         LastSupportedTextAttribute = TextAttributes.UnderlineStyle;
         LastSupportedControlType   = ControlTypes.Separator;
     }
 }
Пример #4
0
 internal static int UiaLookupId(UiaCoreTypesApi.AutomationIdType type, ref Guid guid)
 {
     return(UiaCoreTypesApi.RawUiaLookupId(type, ref guid));
 }