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
- CustomErrorsSectionWrapper.cs
- SchemaTableOptionalColumn.cs
- BitVector32.cs
- XmlReturnWriter.cs
- IIS7UserPrincipal.cs
- EmptyImpersonationContext.cs
- Message.cs
- DoubleLink.cs
- Blend.cs
- VSWCFServiceContractGenerator.cs
- RedirectionProxy.cs
- SynchronizingStream.cs
- DoubleAnimation.cs
- OleDbDataReader.cs
- HttpConfigurationSystem.cs
- SynchronousChannelMergeEnumerator.cs
- LicenseContext.cs
- SharedHttpTransportManager.cs
- GradientStop.cs
- CodeAttachEventStatement.cs
- BuiltInExpr.cs
- HandledMouseEvent.cs
- PointConverter.cs
- SessionStateContainer.cs
- AssemblyInfo.cs
- AuthorizationRuleCollection.cs
- TreeNodeStyleCollection.cs
- WindowCollection.cs
- HttpPostServerProtocol.cs
- SecurityCriticalDataForSet.cs
- TransactionInformation.cs
- ZipIOLocalFileHeader.cs
- CodeDelegateCreateExpression.cs
- EventWaitHandleSecurity.cs
- XmlSchemaComplexContentRestriction.cs
- RectKeyFrameCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- SignatureResourcePool.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- NamespaceQuery.cs
- SqlDataReaderSmi.cs
- MouseEvent.cs
- AuthenticationSection.cs
- ToolStripAdornerWindowService.cs
- Exceptions.cs
- SecurityDescriptor.cs
- ParserOptions.cs
- ScrollItemProviderWrapper.cs
- LassoSelectionBehavior.cs
- CurrencyWrapper.cs
- WebBrowser.cs
- DbConnectionInternal.cs
- LazyInitializer.cs
- ContextMenu.cs
- BoolExpression.cs
- PasswordTextNavigator.cs
- UpdateRecord.cs
- EmptyEnumerator.cs
- SerializableTypeCodeDomSerializer.cs
- DateTimePickerDesigner.cs
- WinInetCache.cs
- TemplateNameScope.cs
- EdmSchemaAttribute.cs
- EdgeProfileValidation.cs
- ConnectionPointConverter.cs
- WebPartZoneDesigner.cs
- ToolStripDropDown.cs
- _FtpControlStream.cs
- SplashScreenNativeMethods.cs
- ButtonAutomationPeer.cs
- Zone.cs
- CodeChecksumPragma.cs
- VersionPair.cs
- FamilyCollection.cs
- DrawingServices.cs
- XmlFormatExtensionPrefixAttribute.cs
- WebAdminConfigurationHelper.cs
- EpmHelper.cs
- RoutedUICommand.cs
- SafeSystemMetrics.cs
- PointKeyFrameCollection.cs
- DataBindingExpressionBuilder.cs
- XmlConvert.cs
- GroupPartitionExpr.cs
- PictureBox.cs
- AttributeTableBuilder.cs
- WebPartChrome.cs
- StringFormat.cs
- RtType.cs
- OrderedDictionary.cs
- MatrixAnimationUsingKeyFrames.cs
- TextBoxBase.cs
- ConfigurationProperty.cs
- HybridDictionary.cs
- OracleNumber.cs
- Brushes.cs
- PrimitiveSchema.cs
- SafeTimerHandle.cs
- SourceLocationProvider.cs
- SynchronizationScope.cs