Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / AutomationFocusChangedEventArgs.cs / 1 / 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
- RightsManagementEncryptedStream.cs
- PermissionToken.cs
- NumberAction.cs
- FixedSOMPageElement.cs
- ReachVisualSerializer.cs
- ClientScriptManager.cs
- ReadOnlyCollectionBase.cs
- ProxyWebPart.cs
- TabletDevice.cs
- SudsParser.cs
- PreloadedPackages.cs
- TTSEngineTypes.cs
- TextWriterEngine.cs
- DataBindingHandlerAttribute.cs
- DataBindingExpressionBuilder.cs
- DesignTimeParseData.cs
- StickyNoteContentControl.cs
- TextWriterEngine.cs
- BitmapEffectDrawingContextWalker.cs
- XsltContext.cs
- CacheSection.cs
- SelectionItemPattern.cs
- WebServiceTypeData.cs
- SelectionItemProviderWrapper.cs
- SmtpMail.cs
- RequestUriProcessor.cs
- XsltException.cs
- EdmComplexPropertyAttribute.cs
- XmlParserContext.cs
- JsonFormatWriterGenerator.cs
- SamlAuthenticationClaimResource.cs
- HuffmanTree.cs
- ValidateNames.cs
- CalendarTable.cs
- EncoderNLS.cs
- Expression.cs
- IdleTimeoutMonitor.cs
- Binding.cs
- LayoutSettings.cs
- DefaultBindingPropertyAttribute.cs
- EnumDataContract.cs
- SafeBitVector32.cs
- FamilyTypeface.cs
- DataContractSerializerServiceBehavior.cs
- SimpleApplicationHost.cs
- LeaseManager.cs
- SchemaImporterExtension.cs
- DrawingAttributesDefaultValueFactory.cs
- Base64Decoder.cs
- RoleManagerSection.cs
- HtmlForm.cs
- XmlTextAttribute.cs
- ServiceOperationListItemList.cs
- DummyDataSource.cs
- ObjectTokenCategory.cs
- smtppermission.cs
- OracleRowUpdatedEventArgs.cs
- ScriptControlManager.cs
- ApplicationFileParser.cs
- ResolveCriteria11.cs
- ClientConvert.cs
- CellQuery.cs
- SiteOfOriginPart.cs
- DataGridViewRowConverter.cs
- ReliableMessagingVersion.cs
- SetStateDesigner.cs
- HttpFileCollection.cs
- RepeaterCommandEventArgs.cs
- UpdateException.cs
- DynamicResourceExtensionConverter.cs
- TypeConverters.cs
- SqlServices.cs
- SimpleFieldTemplateFactory.cs
- CryptoStream.cs
- CaseStatementProjectedSlot.cs
- TraceHwndHost.cs
- ParserStreamGeometryContext.cs
- BoundField.cs
- XPathAncestorQuery.cs
- ScriptingSectionGroup.cs
- NameValueFileSectionHandler.cs
- ExpressionBuilder.cs
- ITreeGenerator.cs
- DispatchWrapper.cs
- UInt16Storage.cs
- Membership.cs
- DrawingAttributesDefaultValueFactory.cs
- ClientBuildManager.cs
- Transform.cs
- Filter.cs
- DiscoveryClientReferences.cs
- ActiveXMessageFormatter.cs
- IncrementalHitTester.cs
- AttributeParameterInfo.cs
- XmlSchemaAttribute.cs
- _ServiceNameStore.cs
- HatchBrush.cs
- ExternalDataExchangeService.cs
- SqlDataSourceSelectingEventArgs.cs
- HttpContextServiceHost.cs