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
- Quad.cs
- HtmlInputReset.cs
- SHA256.cs
- LZCodec.cs
- ConnectorSelectionGlyph.cs
- MimeTypePropertyAttribute.cs
- ClientRuntimeConfig.cs
- ProcessRequestArgs.cs
- FixedStringLookup.cs
- RedirectionProxy.cs
- EntityProviderFactory.cs
- XamlTreeBuilderBamlRecordWriter.cs
- _LoggingObject.cs
- StringOutput.cs
- MissingManifestResourceException.cs
- EdmError.cs
- DataTableNewRowEvent.cs
- DataControlCommands.cs
- DirectionalLight.cs
- ProbeDuplex11AsyncResult.cs
- _NestedSingleAsyncResult.cs
- ToolStrip.cs
- ContractSearchPattern.cs
- BrowserCapabilitiesCompiler.cs
- PropertyDescriptor.cs
- UIElement3DAutomationPeer.cs
- ObjectDataSourceSelectingEventArgs.cs
- MouseGesture.cs
- HttpProcessUtility.cs
- initElementDictionary.cs
- SqlClientFactory.cs
- DataSourceCache.cs
- PersonalizationStateInfoCollection.cs
- BackgroundFormatInfo.cs
- PerformanceCounterPermission.cs
- DBParameter.cs
- ContainerParaClient.cs
- DateTimeFormat.cs
- ExternalException.cs
- SmtpFailedRecipientException.cs
- WithParamAction.cs
- infer.cs
- MenuTracker.cs
- Directory.cs
- TraceSection.cs
- ImmutablePropertyDescriptorGridEntry.cs
- LineVisual.cs
- SystemInformation.cs
- RunInstallerAttribute.cs
- OrderByBuilder.cs
- Splitter.cs
- FontUnitConverter.cs
- OleDbEnumerator.cs
- TextRenderer.cs
- RNGCryptoServiceProvider.cs
- XmlSchemaParticle.cs
- SessionStateUtil.cs
- DataControlFieldCell.cs
- SqlComparer.cs
- KeyConverter.cs
- FixedDocument.cs
- LinqDataSourceContextEventArgs.cs
- JsonGlobals.cs
- ResourceManager.cs
- ScriptResourceHandler.cs
- TransactionInterop.cs
- GregorianCalendar.cs
- Clause.cs
- MessageTransmitTraceRecord.cs
- AnonymousIdentificationSection.cs
- DiffuseMaterial.cs
- WorkItem.cs
- Scheduler.cs
- RegexRunnerFactory.cs
- ActivityExecutionContextCollection.cs
- QilExpression.cs
- Byte.cs
- RelationshipEndCollection.cs
- HandleCollector.cs
- PeerName.cs
- FilterQuery.cs
- Directory.cs
- ResolveRequestResponseAsyncResult.cs
- WebPartEditorOkVerb.cs
- DataGridHeaderBorder.cs
- TextBoxRenderer.cs
- RandomNumberGenerator.cs
- UIElementHelper.cs
- LineBreakRecord.cs
- PrivilegeNotHeldException.cs
- XsltContext.cs
- CollectionViewProxy.cs
- ContextProperty.cs
- InvalidTimeZoneException.cs
- Base64Encoder.cs
- UrlPath.cs
- XmlPreloadedResolver.cs
- XmlCharType.cs
- DBParameter.cs
- Rules.cs