Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / KeyboardInputProviderAcquireFocusEventArgs.cs / 1305600 / KeyboardInputProviderAcquireFocusEventArgs.cs
using System;
namespace System.Windows.Input
{
///
/// The KeyboardInputProviderAcquireFocusEventArgs class is used to
/// notify elements before and after keyboard focus is acquired through
/// a keyboard input provider.
///
public class KeyboardInputProviderAcquireFocusEventArgs : KeyboardEventArgs
{
///
/// Constructs an instance of the KeyboardInputProviderAcquireFocusEventArgs class.
///
///
/// The logical keyboard device associated with this event.
///
///
/// The time when the input occured.
///
///
/// Whether or not interop focus was acquired.
///
public KeyboardInputProviderAcquireFocusEventArgs(KeyboardDevice keyboard, int timestamp, bool focusAcquired) : base(keyboard, timestamp)
{
_focusAcquired = focusAcquired;
}
///
/// The element that now has focus.
///
public bool FocusAcquired
{
get {return _focusAcquired;}
}
///
/// The mechanism used to call the type-specific handler on the
/// target.
///
///
/// The generic handler to call in a type-specific way.
///
///
/// The target to call the handler on.
///
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
{
KeyboardInputProviderAcquireFocusEventHandler handler = (KeyboardInputProviderAcquireFocusEventHandler) genericHandler;
handler(genericTarget, this);
}
private bool _focusAcquired;
}
}
// 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
- odbcmetadatacollectionnames.cs
- HttpServerVarsCollection.cs
- HashRepartitionEnumerator.cs
- RootProfilePropertySettingsCollection.cs
- EncryptedKeyIdentifierClause.cs
- XPathSelectionIterator.cs
- RectAnimation.cs
- GridViewItemAutomationPeer.cs
- ProfilePropertyMetadata.cs
- DrawingAttributeSerializer.cs
- Rfc4050KeyFormatter.cs
- OleDbConnection.cs
- InitializerFacet.cs
- PanelStyle.cs
- dtdvalidator.cs
- AppDomainCompilerProxy.cs
- KoreanLunisolarCalendar.cs
- ModelTreeEnumerator.cs
- WhitespaceRuleReader.cs
- MobilePage.cs
- OracleBFile.cs
- ResourceCodeDomSerializer.cs
- ScriptControlManager.cs
- AssemblyCollection.cs
- WebRequestModuleElement.cs
- AnnotationDocumentPaginator.cs
- Cursor.cs
- _FtpControlStream.cs
- UInt16Storage.cs
- HandlerMappingMemo.cs
- DispatcherOperation.cs
- StackOverflowException.cs
- RootProfilePropertySettingsCollection.cs
- SystemIcons.cs
- DataGridViewSelectedColumnCollection.cs
- SizeAnimationBase.cs
- DesignerVerb.cs
- ScriptManagerProxy.cs
- StorageTypeMapping.cs
- AdRotator.cs
- TemplateParser.cs
- Subtree.cs
- XmlCountingReader.cs
- DesignSurface.cs
- SqlPersonalizationProvider.cs
- DomainUpDown.cs
- AuthenticationManager.cs
- ToolboxComponentsCreatedEventArgs.cs
- ThemeableAttribute.cs
- HWStack.cs
- Menu.cs
- Span.cs
- LiteralControl.cs
- BufferedGraphicsContext.cs
- RightsManagementInformation.cs
- EventListener.cs
- RuntimeHelpers.cs
- NavigationPropertyAccessor.cs
- ProxyHelper.cs
- DataGridState.cs
- COM2PictureConverter.cs
- ItemsControlAutomationPeer.cs
- BypassElementCollection.cs
- QuaternionAnimation.cs
- ProjectionCamera.cs
- ButtonChrome.cs
- RemotingException.cs
- AssemblyNameProxy.cs
- NetMsmqBinding.cs
- SrgsElement.cs
- TextTreeUndo.cs
- StreamGeometryContext.cs
- BaseAppDomainProtocolHandler.cs
- TemplateParser.cs
- ProcessThread.cs
- CompareInfo.cs
- PixelShader.cs
- DtdParser.cs
- serverconfig.cs
- RouteParametersHelper.cs
- ApplicationInfo.cs
- ArrayList.cs
- TargetParameterCountException.cs
- TextElementCollection.cs
- HostingPreferredMapPath.cs
- DataObject.cs
- XmlSchemaComplexType.cs
- CultureTable.cs
- DefaultWorkflowTransactionService.cs
- X509SecurityToken.cs
- MemberJoinTreeNode.cs
- _IPv6Address.cs
- ResourcesChangeInfo.cs
- FixedStringLookup.cs
- XmlNotation.cs
- XmlDocument.cs
- ThreadPool.cs
- ComponentCollection.cs
- DictionaryMarkupSerializer.cs
- DataFormats.cs