Code:
/ 4.0 / 4.0 / 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.
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
- TableColumnCollection.cs
- EditorZoneBase.cs
- TextTreeUndo.cs
- OperationCanceledException.cs
- EdmRelationshipRoleAttribute.cs
- ListContractAdapter.cs
- AppModelKnownContentFactory.cs
- StylusPointProperties.cs
- ContextStaticAttribute.cs
- WebControlToolBoxItem.cs
- NotFiniteNumberException.cs
- AsnEncodedData.cs
- UserControlCodeDomTreeGenerator.cs
- InheritanceService.cs
- AccessibleObject.cs
- XmlSchemaNotation.cs
- DPAPIProtectedConfigurationProvider.cs
- DocumentXPathNavigator.cs
- WebPartConnectionsCloseVerb.cs
- DrawListViewSubItemEventArgs.cs
- ListMarkerSourceInfo.cs
- ClientTargetSection.cs
- AsyncCompletedEventArgs.cs
- PasswordTextNavigator.cs
- Command.cs
- SubstitutionDesigner.cs
- COM2PictureConverter.cs
- DataProtection.cs
- TextWriterTraceListener.cs
- Type.cs
- SQLMembershipProvider.cs
- ServicePointManager.cs
- ExceptionValidationRule.cs
- DynamicILGenerator.cs
- OleDbDataAdapter.cs
- OverflowException.cs
- SelectorItemAutomationPeer.cs
- ElementNotAvailableException.cs
- RegexCharClass.cs
- IxmlLineInfo.cs
- WebSysDefaultValueAttribute.cs
- HyperLinkField.cs
- TimestampInformation.cs
- ArrayHelper.cs
- Sequence.cs
- DbgCompiler.cs
- DefaultTraceListener.cs
- BitmapEffectGeneralTransform.cs
- SecurityResources.cs
- ParameterDataSourceExpression.cs
- ExtractedStateEntry.cs
- ListViewDataItem.cs
- XmlSchemaImporter.cs
- CSharpCodeProvider.cs
- EditorAttributeInfo.cs
- PageAsyncTaskManager.cs
- BindValidationContext.cs
- SafeSecurityHandles.cs
- WorkflowEnvironment.cs
- TreeBuilder.cs
- DeferredElementTreeState.cs
- X509Chain.cs
- DoubleLinkListEnumerator.cs
- EntityContainer.cs
- XmlJsonReader.cs
- RegexReplacement.cs
- FacetDescription.cs
- SpeechUI.cs
- AsyncOperation.cs
- ActivityStateQuery.cs
- AlternateView.cs
- BufferModesCollection.cs
- XmlAnyElementAttribute.cs
- StylusPlugin.cs
- EpmContentSerializerBase.cs
- ConfigurationManagerHelper.cs
- UIPermission.cs
- TimeIntervalCollection.cs
- XmlSubtreeReader.cs
- MouseGestureConverter.cs
- IdlingCommunicationPool.cs
- RequestTimeoutManager.cs
- TextEditor.cs
- ResourceIDHelper.cs
- ObjectManager.cs
- DesignerActionGlyph.cs
- SystemWebCachingSectionGroup.cs
- PrintDialog.cs
- ValidatedControlConverter.cs
- ConditionalAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- DataGridViewCellMouseEventArgs.cs
- JoinCqlBlock.cs
- MessagePropertyVariants.cs
- ReferenceSchema.cs
- ToolBar.cs
- Figure.cs
- XPathScanner.cs
- WebScriptMetadataMessage.cs
- WebPartDeleteVerb.cs