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
- XmlRawWriter.cs
- SystemWebExtensionsSectionGroup.cs
- ExpressionContext.cs
- coordinatorscratchpad.cs
- SharingService.cs
- FunctionNode.cs
- SymDocumentType.cs
- Guid.cs
- SmtpReplyReader.cs
- DbConnectionPool.cs
- ServiceBuildProvider.cs
- EntitySetBaseCollection.cs
- DataView.cs
- ParserOptions.cs
- ToolTipService.cs
- TextStore.cs
- SqlStatistics.cs
- VisualCollection.cs
- VolatileEnlistmentState.cs
- GridItemPattern.cs
- DateTimeOffsetConverter.cs
- PocoPropertyAccessorStrategy.cs
- InstanceCreationEditor.cs
- InputProcessorProfiles.cs
- IResourceProvider.cs
- PropertyBuilder.cs
- DrawingContext.cs
- IndicFontClient.cs
- SystemResourceKey.cs
- NodeFunctions.cs
- SystemResourceHost.cs
- WinEventTracker.cs
- BaseCodeDomTreeGenerator.cs
- MessageQueue.cs
- CurrentChangingEventManager.cs
- FusionWrap.cs
- CreatingCookieEventArgs.cs
- xmlNames.cs
- FrugalMap.cs
- CodeExpressionRuleDeclaration.cs
- LinearGradientBrush.cs
- ViewGenResults.cs
- TableCellsCollectionEditor.cs
- DesignerProperties.cs
- CodeAssignStatement.cs
- ValueUnavailableException.cs
- PageContentAsyncResult.cs
- DataBoundControlHelper.cs
- ScalarConstant.cs
- Parameter.cs
- AssemblyBuilder.cs
- MetadataHelper.cs
- XmlSchemaExporter.cs
- Enumerable.cs
- XmlSchemaException.cs
- ExtractedStateEntry.cs
- PropertyTabChangedEvent.cs
- Privilege.cs
- TransactionScopeDesigner.cs
- DataQuery.cs
- BamlLocalizableResource.cs
- ObjectListComponentEditor.cs
- DataError.cs
- XMLUtil.cs
- ReflectionUtil.cs
- LingerOption.cs
- TypeUnloadedException.cs
- TypefaceMap.cs
- TemplateBindingExpression.cs
- ExtractedStateEntry.cs
- EventHandlersStore.cs
- TypeDescriptor.cs
- HttpModuleAction.cs
- CallbackValidator.cs
- SourceFileBuildProvider.cs
- ActivationServices.cs
- Storyboard.cs
- DbDataAdapter.cs
- SQLByteStorage.cs
- ObjectStateEntry.cs
- DataObjectSettingDataEventArgs.cs
- ContainerSelectorBehavior.cs
- FixedSOMPage.cs
- ToolStripDropDownClosedEventArgs.cs
- WindowHideOrCloseTracker.cs
- VideoDrawing.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TextDecorations.cs
- MdiWindowListStrip.cs
- RoleGroupCollection.cs
- HScrollBar.cs
- GenerateScriptTypeAttribute.cs
- SQLResource.cs
- XPathSelectionIterator.cs
- AdornerLayer.cs
- OperationAbortedException.cs
- DataGridViewCellStateChangedEventArgs.cs
- ChannelSinkStacks.cs
- UrlAuthorizationModule.cs
- TextCompositionEventArgs.cs