Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AsymmetricKeyExchangeFormatter.cs
- BlurEffect.cs
- DesignTimeDataBinding.cs
- CollectionTraceRecord.cs
- TreeNode.cs
- DifferencingCollection.cs
- ProtocolsConfigurationHandler.cs
- EventDescriptorCollection.cs
- MD5CryptoServiceProvider.cs
- AssemblyResourceLoader.cs
- WsatConfiguration.cs
- StorageAssociationTypeMapping.cs
- GeneratedView.cs
- GeneratedContractType.cs
- TransformGroup.cs
- CounterSetInstance.cs
- Glyph.cs
- Enum.cs
- ApplicationHost.cs
- SystemResources.cs
- XmlImplementation.cs
- XNodeNavigator.cs
- X509Chain.cs
- FormatConvertedBitmap.cs
- FlowLayout.cs
- ToggleButton.cs
- VScrollBar.cs
- ResourceReferenceKeyNotFoundException.cs
- NavigationWindowAutomationPeer.cs
- FormViewDeleteEventArgs.cs
- SqlNamer.cs
- CompressEmulationStream.cs
- ReliableMessagingHelpers.cs
- FilterQuery.cs
- PassportAuthentication.cs
- XmlSchemaSimpleContent.cs
- EditingScopeUndoUnit.cs
- DateTimeOffsetAdapter.cs
- TransactionContextManager.cs
- Delay.cs
- MyContact.cs
- SpeechEvent.cs
- MailWebEventProvider.cs
- DataControlField.cs
- SqlInternalConnectionSmi.cs
- ToolStripItemTextRenderEventArgs.cs
- SystemInformation.cs
- FlowDocumentPage.cs
- AsyncOperationManager.cs
- VersionedStreamOwner.cs
- FilteredAttributeCollection.cs
- PerformanceCounterManager.cs
- ControllableStoryboardAction.cs
- BaseDataListPage.cs
- DeflateStream.cs
- DbParameterCollectionHelper.cs
- PerspectiveCamera.cs
- Transactions.cs
- IPAddress.cs
- ConfigurationPropertyCollection.cs
- MsmqProcessProtocolHandler.cs
- ListBindingHelper.cs
- NameValuePair.cs
- Interlocked.cs
- SecurityTokenAuthenticator.cs
- UInt64.cs
- InProcStateClientManager.cs
- TextBoxBase.cs
- CompositeDataBoundControl.cs
- Sql8ConformanceChecker.cs
- HostedBindingBehavior.cs
- SqlBulkCopyColumnMappingCollection.cs
- DocumentPage.cs
- CodeMethodMap.cs
- GrammarBuilderRuleRef.cs
- ExportOptions.cs
- SiteMapNode.cs
- EntityProviderFactory.cs
- EmptyStringExpandableObjectConverter.cs
- TextFormatter.cs
- DesignerVerbToolStripMenuItem.cs
- Crc32.cs
- PageAsyncTask.cs
- RotateTransform.cs
- CommandEventArgs.cs
- MailHeaderInfo.cs
- ConfigurationManagerHelper.cs
- MethodInfo.cs
- SmiSettersStream.cs
- RegisteredScript.cs
- OracleCommandSet.cs
- RightsManagementEncryptionTransform.cs
- SocketPermission.cs
- DbConnectionPoolGroup.cs
- StreamInfo.cs
- DataList.cs
- ClockController.cs
- PrimarySelectionGlyph.cs
- Byte.cs
- CommandEventArgs.cs