Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / EventListener.cs / 1305600 / EventListener.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // EventListener internal class holds the event data for both client and server sides // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; namespace MS.Internal.Automation { // internal class holds the event data for both client and server sides internal class EventListener { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // full ctor internal EventListener( AutomationEvent eventId, TreeScope scope, AutomationProperty [] properties, UiaCoreApi.UiaCacheRequest cacheRequest ) { _eventId = eventId; _scope = scope; if (properties != null) _properties = (AutomationProperty[])properties.Clone(); else _properties = null; _cacheRequest = cacheRequest; } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties // returns the id of the event this listener represents. internal AutomationEvent EventId { get { return _eventId; } } // returns the array of properties being listened to for property changed events. internal AutomationProperty [] Properties { get { return _properties; } } // return scopt of this event internal TreeScope TreeScope { get { return _scope; } } // returns the list of properties, patterns, etc that we need to prefetch internal UiaCoreApi.UiaCacheRequest CacheRequest { get { return _cacheRequest; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private AutomationEvent _eventId; // the event this listener represents private TreeScope _scope; // fire events based on this scope private AutomationProperty [] _properties; // for property change, indicates the properties we're listening for private UiaCoreApi.UiaCacheRequest _cacheRequest; // properties etc to prefetch #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
- BooleanAnimationBase.cs
- latinshape.cs
- InputProcessorProfiles.cs
- JournalNavigationScope.cs
- SHA256.cs
- NativeActivity.cs
- SQLSingleStorage.cs
- Rect3D.cs
- GridViewSelectEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SqlDependency.cs
- TimelineGroup.cs
- DebugViewWriter.cs
- ListBoxDesigner.cs
- StringConverter.cs
- hwndwrapper.cs
- SoapExtensionImporter.cs
- Latin1Encoding.cs
- DocumentSequence.cs
- LiteralTextContainerControlBuilder.cs
- FixedSOMTextRun.cs
- TextBox.cs
- BooleanProjectedSlot.cs
- PartialList.cs
- RemotingConfigParser.cs
- SafeWaitHandle.cs
- XmlArrayItemAttribute.cs
- Vector3DAnimation.cs
- DetailsViewPagerRow.cs
- OperatorExpressions.cs
- CommandConverter.cs
- EntityTransaction.cs
- SqlProfileProvider.cs
- SmiRecordBuffer.cs
- ByteStack.cs
- Trace.cs
- WindowsContainer.cs
- MetadataCacheItem.cs
- DragCompletedEventArgs.cs
- ThemeInfoAttribute.cs
- CustomErrorCollection.cs
- CompilerResults.cs
- PasswordBox.cs
- ImportContext.cs
- List.cs
- WebPartDisplayModeCancelEventArgs.cs
- SchemaInfo.cs
- XmlHierarchyData.cs
- FixedSOMTextRun.cs
- WindowManager.cs
- RefType.cs
- ExtensibleClassFactory.cs
- CollectionMarkupSerializer.cs
- BuildResult.cs
- ObjectContext.cs
- ZipIOLocalFileDataDescriptor.cs
- VectorConverter.cs
- ZipIOExtraFieldElement.cs
- HMACRIPEMD160.cs
- FileRecordSequence.cs
- IncrementalReadDecoders.cs
- MatrixCamera.cs
- TemplatedMailWebEventProvider.cs
- SoapRpcMethodAttribute.cs
- EventLogger.cs
- DateTimeEditor.cs
- DocumentViewerConstants.cs
- BamlReader.cs
- DocumentViewerAutomationPeer.cs
- UTF8Encoding.cs
- BuilderPropertyEntry.cs
- UrlPropertyAttribute.cs
- OdbcException.cs
- HandlerFactoryWrapper.cs
- panel.cs
- DataGridViewCellConverter.cs
- EndOfStreamException.cs
- PlatformNotSupportedException.cs
- AVElementHelper.cs
- XmlSchemaSimpleTypeRestriction.cs
- CookieProtection.cs
- DodSequenceMerge.cs
- CharAnimationUsingKeyFrames.cs
- CompressedStack.cs
- Fonts.cs
- ExpandoObject.cs
- FileUtil.cs
- Win32Native.cs
- SortAction.cs
- InvokeMemberBinder.cs
- _Events.cs
- SessionStateSection.cs
- KerberosSecurityTokenProvider.cs
- MatrixTransform3D.cs
- DbParameterCollectionHelper.cs
- FilteredXmlReader.cs
- HtmlMeta.cs
- CodeExpressionStatement.cs
- DbUpdateCommandTree.cs
- TypedRowGenerator.cs