Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / AutomationFocusChangedEventArgs.cs / 1305600 / AutomationFocusChangedEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Focus event args class (Client Side) // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Delegate to handle focus change events /// #if (INTERNAL_COMPILE) internal delegate void AutomationFocusChangedEventHandler( object sender, AutomationFocusChangedEventArgs e ); #else public delegate void AutomationFocusChangedEventHandler( object sender, AutomationFocusChangedEventArgs e ); #endif // AutomationFocusChangedEventArgs has two distinct uses: // - when used by provider code, it is basically a wrapper for the previous focus provider, // which gets passed through as a parameter to the UiaCore API. // - on the client side, it is used to deliver focus events to the client - these events // may originate within the client via focus winevents, or may be the result of notifications // from core. In both cases, the ClientApi code creates an instance of the args, with an // AutomationElement indicating the previous focus. ////// Focus event args class /// #if (INTERNAL_COMPILE) internal class AutomationFocusChangedEventArgs : AutomationEventArgs #else public class AutomationFocusChangedEventArgs : AutomationEventArgs #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Client-side constructor for focus event args. /// /// Indicates object id. /// Indicates id of the child. public AutomationFocusChangedEventArgs(int idObject, int idChild) : base(AutomationElement.AutomationFocusChangedEvent) { _idObject = idObject; _idChild = idChild; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Returns the object id /// public int ObjectId { get { return _idObject; } } ////// Returns the child id /// public int ChildId { get { return _idChild; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private int _idObject; // private int _idChild; // #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: Focus event args class (Client Side) // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Delegate to handle focus change events /// #if (INTERNAL_COMPILE) internal delegate void AutomationFocusChangedEventHandler( object sender, AutomationFocusChangedEventArgs e ); #else public delegate void AutomationFocusChangedEventHandler( object sender, AutomationFocusChangedEventArgs e ); #endif // AutomationFocusChangedEventArgs has two distinct uses: // - when used by provider code, it is basically a wrapper for the previous focus provider, // which gets passed through as a parameter to the UiaCore API. // - on the client side, it is used to deliver focus events to the client - these events // may originate within the client via focus winevents, or may be the result of notifications // from core. In both cases, the ClientApi code creates an instance of the args, with an // AutomationElement indicating the previous focus. ////// Focus event args class /// #if (INTERNAL_COMPILE) internal class AutomationFocusChangedEventArgs : AutomationEventArgs #else public class AutomationFocusChangedEventArgs : AutomationEventArgs #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Client-side constructor for focus event args. /// /// Indicates object id. /// Indicates id of the child. public AutomationFocusChangedEventArgs(int idObject, int idChild) : base(AutomationElement.AutomationFocusChangedEvent) { _idObject = idObject; _idChild = idChild; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Returns the object id /// public int ObjectId { get { return _idObject; } } ////// Returns the child id /// public int ChildId { get { return _idChild; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private int _idObject; // private int _idChild; // #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
- Binding.cs
- TemplatePartAttribute.cs
- WebBrowserBase.cs
- DirectoryRootQuery.cs
- UpdateManifestForBrowserApplication.cs
- ToolbarAUtomationPeer.cs
- ResXResourceWriter.cs
- WSFederationHttpSecurityMode.cs
- XPathDocumentBuilder.cs
- C14NUtil.cs
- QuaternionValueSerializer.cs
- MDIWindowDialog.cs
- TargetInvocationException.cs
- XmlSchemaComplexContent.cs
- RegisteredHiddenField.cs
- ListViewItem.cs
- SelectionProviderWrapper.cs
- Soap.cs
- EndpointDiscoveryElement.cs
- EntityDataSourceMemberPath.cs
- ObjectDataSourceSelectingEventArgs.cs
- ElementFactory.cs
- ChildTable.cs
- CodeMemberMethod.cs
- FileVersionInfo.cs
- DesignRelationCollection.cs
- ResourcePart.cs
- SqlPersistenceProviderFactory.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- XMLSyntaxException.cs
- SessionStateItemCollection.cs
- TogglePattern.cs
- LogExtent.cs
- Model3D.cs
- Helpers.cs
- InvalidateEvent.cs
- HttpStreamXmlDictionaryReader.cs
- CharacterMetricsDictionary.cs
- ConfigurationCollectionAttribute.cs
- InstanceDescriptor.cs
- WebPartConnectionsCancelVerb.cs
- ChtmlLinkAdapter.cs
- ObjectReferenceStack.cs
- AsyncPostBackErrorEventArgs.cs
- ListControlDataBindingHandler.cs
- DbXmlEnabledProviderManifest.cs
- CharUnicodeInfo.cs
- BeginEvent.cs
- TableSectionStyle.cs
- RowBinding.cs
- XPathDocument.cs
- SmtpDigestAuthenticationModule.cs
- ImageCodecInfo.cs
- DbDataRecord.cs
- DiscoveryClientElement.cs
- QueryRelOp.cs
- RegionInfo.cs
- FixedBufferAttribute.cs
- DetailsViewInsertedEventArgs.cs
- CreationContext.cs
- DataGridViewCellStyleConverter.cs
- Types.cs
- CardSpaceException.cs
- WebPartHeaderCloseVerb.cs
- DrawToolTipEventArgs.cs
- WebPartUserCapability.cs
- TextTreeExtractElementUndoUnit.cs
- ConnectionStringSettings.cs
- SimpleExpression.cs
- OleDbInfoMessageEvent.cs
- DataSourceExpressionCollection.cs
- _StreamFramer.cs
- PreloadedPackages.cs
- Nodes.cs
- MsmqNonTransactedPoisonHandler.cs
- PropertyDescriptors.cs
- LongTypeConverter.cs
- InvokeMethodActivityDesigner.cs
- PreProcessInputEventArgs.cs
- DataGridState.cs
- VisualTarget.cs
- ISAPIRuntime.cs
- AppearanceEditorPart.cs
- DefaultMemberAttribute.cs
- CodeStatementCollection.cs
- Matrix.cs
- SwitchLevelAttribute.cs
- EntityDataSourceColumn.cs
- AccessibleObject.cs
- HitTestResult.cs
- ValidationErrorEventArgs.cs
- EventSinkHelperWriter.cs
- SetIterators.cs
- QueryIntervalOp.cs
- Version.cs
- Int32CollectionConverter.cs
- EpmSyndicationContentSerializer.cs
- X509Certificate.cs
- PropertyCollection.cs
- ConfigurationLocationCollection.cs