Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / EventListener.cs / 1 / 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. //---------------------------------------------------------------------------- // //// 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
- MatchNoneMessageFilter.cs
- EnumValidator.cs
- XmlReader.cs
- BamlLocalizationDictionary.cs
- mediapermission.cs
- PinnedBufferMemoryStream.cs
- ParserOptions.cs
- PermissionAttributes.cs
- TraceHandlerErrorFormatter.cs
- Error.cs
- RelatedImageListAttribute.cs
- CreateUserWizardStep.cs
- SimpleFieldTemplateFactory.cs
- XsltContext.cs
- PageParser.cs
- ReaderWriterLock.cs
- ColorMatrix.cs
- BinaryNode.cs
- ManifestResourceInfo.cs
- ImageField.cs
- Soap.cs
- EntityContainerEmitter.cs
- Journaling.cs
- EditorPartChrome.cs
- MasterPageCodeDomTreeGenerator.cs
- ConstructorBuilder.cs
- DynamicObjectAccessor.cs
- RequestCacheManager.cs
- filewebresponse.cs
- QueryCacheKey.cs
- Resources.Designer.cs
- DBSqlParserTable.cs
- ProcessStartInfo.cs
- TaskbarItemInfo.cs
- BufferModeSettings.cs
- MethodExpr.cs
- NativeMethods.cs
- UdpDiscoveryEndpointElement.cs
- TypedAsyncResult.cs
- ExpressionVisitorHelpers.cs
- CodeVariableDeclarationStatement.cs
- XNodeNavigator.cs
- UniqueConstraint.cs
- Int32Animation.cs
- Converter.cs
- AspCompat.cs
- ModuleBuilderData.cs
- CachingHintValidation.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- SerializationEventsCache.cs
- ReachDocumentPageSerializerAsync.cs
- MenuEventArgs.cs
- FamilyMapCollection.cs
- RegularExpressionValidator.cs
- XmlIncludeAttribute.cs
- ApplicationFileParser.cs
- CheckBoxFlatAdapter.cs
- ListBox.cs
- HostProtectionPermission.cs
- StretchValidation.cs
- PrivilegeNotHeldException.cs
- GridItemPattern.cs
- DefaultBindingPropertyAttribute.cs
- EmbossBitmapEffect.cs
- SqlRemoveConstantOrderBy.cs
- DLinqAssociationProvider.cs
- ThreadStateException.cs
- DataGridViewCellMouseEventArgs.cs
- SerializationException.cs
- XmlCompatibilityReader.cs
- EncryptedPackage.cs
- XamlPathDataSerializer.cs
- AnnotationComponentChooser.cs
- WebPartHelpVerb.cs
- SByteStorage.cs
- CompositeDesignerAccessibleObject.cs
- TableNameAttribute.cs
- ArraySortHelper.cs
- XmlUrlResolver.cs
- ClientTarget.cs
- WrappedIUnknown.cs
- XmlEnumAttribute.cs
- ByteRangeDownloader.cs
- DoubleAnimationUsingPath.cs
- GreenMethods.cs
- CollectionChangeEventArgs.cs
- DesignSurfaceServiceContainer.cs
- CalendarTable.cs
- WebPartZone.cs
- CodeTypeOfExpression.cs
- ResourcesBuildProvider.cs
- CurrentTimeZone.cs
- DomainConstraint.cs
- XmlElementCollection.cs
- MergablePropertyAttribute.cs
- BinarySerializer.cs
- CatalogZone.cs
- SiteMapDesignerDataSourceView.cs
- SqlInfoMessageEvent.cs
- TextBlockAutomationPeer.cs