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
- ContainerControl.cs
- DataColumnPropertyDescriptor.cs
- HttpCachePolicy.cs
- StateBag.cs
- EdmEntityTypeAttribute.cs
- MsmqIntegrationInputChannel.cs
- Processor.cs
- CheckBoxRenderer.cs
- StringValidatorAttribute.cs
- DataGridCommandEventArgs.cs
- UIElement3DAutomationPeer.cs
- AppSettingsReader.cs
- QueueNameHelper.cs
- panel.cs
- InputElement.cs
- DataControlFieldCollection.cs
- FrameworkContentElementAutomationPeer.cs
- PageVisual.cs
- SchemaLookupTable.cs
- WebPart.cs
- ClientViaElement.cs
- SmiTypedGetterSetter.cs
- VerificationAttribute.cs
- Win32.cs
- FileLoadException.cs
- ProfileBuildProvider.cs
- BindingExpressionUncommonField.cs
- xml.cs
- FormatterServices.cs
- RightsManagementPermission.cs
- InstanceData.cs
- shaperfactory.cs
- StickyNoteContentControl.cs
- ExtendedProperty.cs
- XhtmlBasicTextBoxAdapter.cs
- BindingsCollection.cs
- SemanticValue.cs
- NetCodeGroup.cs
- VirtualizingStackPanel.cs
- HotCommands.cs
- NameValueFileSectionHandler.cs
- XamlTreeBuilderBamlRecordWriter.cs
- GrammarBuilderRuleRef.cs
- Fonts.cs
- UInt32Converter.cs
- XamlSerializerUtil.cs
- XmlILAnnotation.cs
- CodeDomSerializationProvider.cs
- RegistrationServices.cs
- NegationPusher.cs
- AstNode.cs
- ListItemCollection.cs
- HtmlHead.cs
- DNS.cs
- PersonalizationProviderCollection.cs
- IDQuery.cs
- BitmapScalingModeValidation.cs
- Cursor.cs
- TypedElement.cs
- ArraySortHelper.cs
- List.cs
- ErrorStyle.cs
- ThumbAutomationPeer.cs
- LowerCaseStringConverter.cs
- NegotiationTokenAuthenticatorState.cs
- DataSetMappper.cs
- ViewUtilities.cs
- ConfigsHelper.cs
- ECDiffieHellman.cs
- DbProviderManifest.cs
- DBDataPermissionAttribute.cs
- CryptoApi.cs
- DataKeyCollection.cs
- LayoutManager.cs
- FontCollection.cs
- UidPropertyAttribute.cs
- PackageStore.cs
- StyleModeStack.cs
- ElementAction.cs
- Line.cs
- InstanceLockLostException.cs
- ComponentSerializationService.cs
- InstanceCompleteException.cs
- UnsafeNativeMethodsCLR.cs
- BooleanStorage.cs
- XmlCharCheckingWriter.cs
- ApplicationDirectory.cs
- ZoneIdentityPermission.cs
- GatewayIPAddressInformationCollection.cs
- KeyPressEvent.cs
- X509CertificateClaimSet.cs
- WebPartConnectionsCloseVerb.cs
- CheckBoxFlatAdapter.cs
- XmlAttributeCache.cs
- XmlToDatasetMap.cs
- RemotingConfiguration.cs
- LinkArea.cs
- ACL.cs
- ProfileManager.cs
- Triangle.cs