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
- GridViewDeletedEventArgs.cs
- ProfileBuildProvider.cs
- KoreanLunisolarCalendar.cs
- StylusCaptureWithinProperty.cs
- StyleCollection.cs
- ErrorWebPart.cs
- CryptoApi.cs
- WindowsSolidBrush.cs
- GlobalItem.cs
- EnumMember.cs
- SQlBooleanStorage.cs
- ConsumerConnectionPoint.cs
- Regex.cs
- Preprocessor.cs
- CategoriesDocument.cs
- DataSourceIDConverter.cs
- PropertyPath.cs
- ContainerParaClient.cs
- DataGridViewImageCell.cs
- ConfigurationSchemaErrors.cs
- TableAdapterManagerHelper.cs
- SystemException.cs
- StorageInfo.cs
- FormView.cs
- Int32Animation.cs
- cookie.cs
- UInt16.cs
- TextRangeEditLists.cs
- PolyBezierSegment.cs
- WindowsAuthenticationModule.cs
- LinqDataSourceDeleteEventArgs.cs
- ResizeGrip.cs
- GenericsInstances.cs
- VectorCollection.cs
- SR.cs
- HttpModuleAction.cs
- SrgsRule.cs
- HotSpotCollection.cs
- SQLBinaryStorage.cs
- LongValidatorAttribute.cs
- TypeDescriptionProvider.cs
- FontSizeConverter.cs
- PathData.cs
- RSAPKCS1KeyExchangeFormatter.cs
- FrameworkRichTextComposition.cs
- XmlCharacterData.cs
- SingleSelectRootGridEntry.cs
- Simplifier.cs
- Graphics.cs
- BuildResult.cs
- HighlightVisual.cs
- XamlReaderHelper.cs
- ArgumentOutOfRangeException.cs
- HttpListenerException.cs
- x509store.cs
- DockPattern.cs
- SqlCrossApplyToCrossJoin.cs
- UIAgentAsyncParams.cs
- SafeFindHandle.cs
- CodeArgumentReferenceExpression.cs
- BitStream.cs
- DbDeleteCommandTree.cs
- SystemTcpStatistics.cs
- TypeConverterValueSerializer.cs
- PageContent.cs
- ReadingWritingEntityEventArgs.cs
- TouchesCapturedWithinProperty.cs
- DataGridViewCellCancelEventArgs.cs
- TemplateApplicationHelper.cs
- VectorAnimation.cs
- SynchronizedReadOnlyCollection.cs
- sapiproxy.cs
- RequestCache.cs
- HtmlInputReset.cs
- Atom10FeedFormatter.cs
- ActionFrame.cs
- LoginView.cs
- DesignerVerb.cs
- ValidationRuleCollection.cs
- PersonalizationStateInfoCollection.cs
- DetailsViewRow.cs
- XmlSchema.cs
- EncryptedType.cs
- PropertyDescriptorGridEntry.cs
- ReflectTypeDescriptionProvider.cs
- SystemPens.cs
- DtdParser.cs
- MSAAEventDispatcher.cs
- TransformerInfoCollection.cs
- TreeBuilderXamlTranslator.cs
- ThumbAutomationPeer.cs
- DataListItemEventArgs.cs
- ToolStripItemEventArgs.cs
- OwnerDrawPropertyBag.cs
- HostingEnvironment.cs
- SwitchLevelAttribute.cs
- AsyncOperationManager.cs
- GenericUriParser.cs
- Point3DAnimationUsingKeyFrames.cs
- CompiledQuery.cs