Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / SynchronizedInputPattern.cs / 1305600 / SynchronizedInputPattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for SynchronizedInput Pattern // // History: // 11/07/2008 : Added by [....]. // //--------------------------------------------------------------------------- using System; //using System.Collections; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Represents objects that support synchronized input events /// #if (INTERNAL_COMPILE) internal class SynchronizedInputPattern: BasePattern #else public class SynchronizedInputPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///SynchronizedInputPattern pattern public static readonly AutomationPattern Pattern = SynchronizedInputPatternIdentifiers.Pattern; ////// Event ID: InputReachedTarget - indicates input received by the current listening element. /// sourceElement refers to the current listening element. /// public static readonly AutomationEvent InputReachedTargetEvent = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; ////// /// Event ID: InputReachedOtherElement - indicates an input is handled by different element than the one currently listening on. /// sourceElement refers to the current listening element. /// public static readonly AutomationEvent InputReachedOtherElementEvent = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; ////// Event ID: InputDiscarded - indicates that input is discarded by the framework. /// sourceElement refers to the current listening element. /// public static readonly AutomationEvent InputDiscardedEvent = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// The client calls this method to indicate the current element should start listening /// for input event of the given type. /// public void StartListening(SynchronizedInputType inputType) { UiaCoreApi.SynchronizedInputPattern_StartListening(_hPattern,inputType); } ////// If the element is currently listening, it will revert back to normal operation /// /// public void Cancel() { UiaCoreApi.SynchronizedInputPattern_Cancel(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new SynchronizedInputPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeNamespaceImport.cs
- ColorContextHelper.cs
- StateRuntime.cs
- DispatcherProcessingDisabled.cs
- ExpressionEditor.cs
- WindowsToolbarAsMenu.cs
- RestClientProxyHandler.cs
- QueuePropertyVariants.cs
- InputLanguageCollection.cs
- streamingZipPartStream.cs
- XmlSchemas.cs
- QuaternionValueSerializer.cs
- TableCell.cs
- DataServiceProcessingPipelineEventArgs.cs
- HtmlPanelAdapter.cs
- AspNetHostingPermission.cs
- PenThreadPool.cs
- PeerObject.cs
- Vector3D.cs
- AutoResetEvent.cs
- ChtmlTextWriter.cs
- XmlUnspecifiedAttribute.cs
- NetPeerTcpBindingElement.cs
- DbLambda.cs
- PathSegment.cs
- TreeViewImageKeyConverter.cs
- ApplicationHost.cs
- XmlBufferedByteStreamReader.cs
- NavigationWindow.cs
- TraceData.cs
- GridViewColumnHeader.cs
- FillBehavior.cs
- BindableTemplateBuilder.cs
- NullableFloatSumAggregationOperator.cs
- CaseStatement.cs
- StringSource.cs
- AttributeCollection.cs
- Verify.cs
- TranslateTransform.cs
- KeyConverter.cs
- PageHandlerFactory.cs
- XmlIlTypeHelper.cs
- CacheChildrenQuery.cs
- AnnotationComponentManager.cs
- EventSinkHelperWriter.cs
- ExeConfigurationFileMap.cs
- GraphicsContainer.cs
- MD5HashHelper.cs
- EdmPropertyAttribute.cs
- KnownTypesHelper.cs
- RequestCacheManager.cs
- Attributes.cs
- StrokeSerializer.cs
- StrokeNodeOperations.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ErrorHandler.cs
- Timeline.cs
- SchemaCollectionPreprocessor.cs
- ConsoleCancelEventArgs.cs
- DeferrableContentConverter.cs
- DataGridViewToolTip.cs
- ProjectionAnalyzer.cs
- MissingFieldException.cs
- SourceFilter.cs
- TdsParserHelperClasses.cs
- CommentAction.cs
- TableItemPatternIdentifiers.cs
- ExtendedProperty.cs
- CheckBoxStandardAdapter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TokenCreationParameter.cs
- StrokeDescriptor.cs
- DbConnectionPoolCounters.cs
- UnionCodeGroup.cs
- FigureParagraph.cs
- BulletedList.cs
- VisualCollection.cs
- ConfigXmlComment.cs
- DBCommand.cs
- WhereaboutsReader.cs
- KeyConstraint.cs
- ListBindableAttribute.cs
- UpdatePanel.cs
- WebPartsPersonalization.cs
- MiniAssembly.cs
- Certificate.cs
- XamlUtilities.cs
- UserNamePasswordValidator.cs
- GlyphCache.cs
- TableFieldsEditor.cs
- EntityDataSourceChangedEventArgs.cs
- DoubleCollectionValueSerializer.cs
- MultiBindingExpression.cs
- CookielessHelper.cs
- SspiNegotiationTokenProvider.cs
- CustomAssemblyResolver.cs
- UIElement3DAutomationPeer.cs
- RecordManager.cs
- RegexParser.cs