Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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 : [....] 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
- MobileControl.cs
- ServiceHostingEnvironment.cs
- TranslateTransform.cs
- SecureStringHasher.cs
- NavigatingCancelEventArgs.cs
- HwndHost.cs
- DataSourceConverter.cs
- SystemIcons.cs
- NamedObject.cs
- WebBaseEventKeyComparer.cs
- TransactionFlowElement.cs
- followingsibling.cs
- SqlMethodAttribute.cs
- DependencyPropertyConverter.cs
- ThrowHelper.cs
- Process.cs
- PreviewControlDesigner.cs
- XmlnsDictionary.cs
- DataServiceKeyAttribute.cs
- SqlDuplicator.cs
- SafeCoTaskMem.cs
- TypeUsageBuilder.cs
- RoleService.cs
- SerializeAbsoluteContext.cs
- ByteStreamMessageEncoder.cs
- UnsafeNativeMethods.cs
- EdgeProfileValidation.cs
- UnknownBitmapEncoder.cs
- ContentElement.cs
- CollectionContainer.cs
- SmiEventSink.cs
- AddInActivator.cs
- ClaimTypes.cs
- DataGridCellItemAutomationPeer.cs
- ADMembershipUser.cs
- XmlDictionary.cs
- SetterBaseCollection.cs
- SerializationException.cs
- ExtractorMetadata.cs
- SecurityTokenException.cs
- DetailsViewPageEventArgs.cs
- UidManager.cs
- HttpSessionStateBase.cs
- PointAnimationUsingKeyFrames.cs
- Compiler.cs
- TableLayoutSettings.cs
- MutexSecurity.cs
- SessionPageStateSection.cs
- Polyline.cs
- COMException.cs
- Point3DAnimation.cs
- XmlCodeExporter.cs
- VectorCollectionConverter.cs
- SqlClientWrapperSmiStreamChars.cs
- XPathDescendantIterator.cs
- CopyOnWriteList.cs
- RectIndependentAnimationStorage.cs
- XMLSyntaxException.cs
- Viewport3DAutomationPeer.cs
- XmlSchemaSimpleType.cs
- Table.cs
- SemaphoreFullException.cs
- ToolBar.cs
- GroupAggregateExpr.cs
- SettingsPropertyWrongTypeException.cs
- IntegerValidator.cs
- XmlSchemaComplexContentRestriction.cs
- CapiNative.cs
- WebPartVerb.cs
- KeyedHashAlgorithm.cs
- SaveFileDialog.cs
- FamilyTypefaceCollection.cs
- PictureBox.cs
- CellConstantDomain.cs
- TextMetrics.cs
- ExitEventArgs.cs
- PropertyValueUIItem.cs
- SiteMapNode.cs
- BindingManagerDataErrorEventArgs.cs
- SQlBooleanStorage.cs
- SplayTreeNode.cs
- DataMisalignedException.cs
- ValidatedControlConverter.cs
- Operators.cs
- MenuTracker.cs
- EventManager.cs
- DataColumn.cs
- FrameworkObject.cs
- IgnoreDeviceFilterElement.cs
- ParagraphVisual.cs
- HtmlPanelAdapter.cs
- SessionStateItemCollection.cs
- ContextDataSource.cs
- TypefaceMap.cs
- RawKeyboardInputReport.cs
- DebugManager.cs
- TransactionContextValidator.cs
- Dictionary.cs
- CompiledWorkflowDefinitionContext.cs
- UnknownMessageReceivedEventArgs.cs