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
- NumericPagerField.cs
- DataViewSetting.cs
- EntitySetDataBindingList.cs
- DataSourceGroupCollection.cs
- MethodImplAttribute.cs
- XPathSelectionIterator.cs
- DynamicFilter.cs
- ListViewInsertEventArgs.cs
- StreamGeometry.cs
- Version.cs
- AdRotatorDesigner.cs
- MediaContext.cs
- PageParser.cs
- HMACSHA256.cs
- ViewBox.cs
- CmsUtils.cs
- RootNamespaceAttribute.cs
- UserPreferenceChangedEventArgs.cs
- NetCodeGroup.cs
- Variant.cs
- Attributes.cs
- LoadWorkflowByInstanceKeyCommand.cs
- Constant.cs
- MergeFilterQuery.cs
- FtpWebRequest.cs
- EntityDataSourceDataSelection.cs
- CodeDOMProvider.cs
- XmlSchemaGroup.cs
- OleDbEnumerator.cs
- FileLoadException.cs
- ActivityXRefPropertyEditor.cs
- KnownTypesProvider.cs
- DependencyProperty.cs
- BitmapSourceSafeMILHandle.cs
- DocumentViewerBase.cs
- RealProxy.cs
- SynchronizationScope.cs
- EditorZoneBase.cs
- MergePropertyDescriptor.cs
- MenuItemCollection.cs
- WebPartAddingEventArgs.cs
- AutoResetEvent.cs
- ClientRuntimeConfig.cs
- ComboBox.cs
- PageWrapper.cs
- OdbcEnvironmentHandle.cs
- BuildManager.cs
- SystemIcons.cs
- LedgerEntry.cs
- BStrWrapper.cs
- FilterQuery.cs
- OracleColumn.cs
- XpsTokenContext.cs
- DefaultPrintController.cs
- ActivityAction.cs
- LogicalMethodInfo.cs
- SafeNativeMethods.cs
- FormsAuthenticationTicket.cs
- ContextMenuService.cs
- SecondaryViewProvider.cs
- SQLConvert.cs
- TransformConverter.cs
- DirectoryNotFoundException.cs
- WinCategoryAttribute.cs
- RtfFormatStack.cs
- TrackingMemoryStreamFactory.cs
- XmlSchemaAnyAttribute.cs
- Vector3DAnimation.cs
- MaxValueConverter.cs
- IpcPort.cs
- InfoCardConstants.cs
- ResXBuildProvider.cs
- ColumnMapProcessor.cs
- MessageAction.cs
- HostAdapter.cs
- MediaTimeline.cs
- ObjectManager.cs
- DbConnectionPoolGroup.cs
- CustomError.cs
- DataSysAttribute.cs
- HwndMouseInputProvider.cs
- XmlSchemaAnnotation.cs
- KeysConverter.cs
- WsdlBuildProvider.cs
- TableStyle.cs
- TypeConverter.cs
- DelayLoadType.cs
- BufferedGraphicsManager.cs
- SharedPersonalizationStateInfo.cs
- ButtonBase.cs
- XmlAtomicValue.cs
- IndicCharClassifier.cs
- GroupItemAutomationPeer.cs
- AsmxEndpointPickerExtension.cs
- WebWorkflowRole.cs
- Rect.cs
- ApplicationHost.cs
- PageVisual.cs
- PropertyGeneratedEventArgs.cs
- TextEditorLists.cs