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
- SqlProvider.cs
- ReservationCollection.cs
- ProgressBar.cs
- MethodImplAttribute.cs
- TraceHwndHost.cs
- ListViewPagedDataSource.cs
- UrlEncodedParameterWriter.cs
- WebHttpBindingCollectionElement.cs
- MasterPage.cs
- XmlImplementation.cs
- CharacterMetrics.cs
- GPPOINT.cs
- FactoryId.cs
- CellParaClient.cs
- DbBuffer.cs
- TokenizerHelper.cs
- ContravarianceAdapter.cs
- DataRecordInternal.cs
- EditableRegion.cs
- ObjectView.cs
- SubpageParaClient.cs
- ExpressionLink.cs
- ContainerActivationHelper.cs
- Matrix3D.cs
- ShaderEffect.cs
- IISMapPath.cs
- AmbientLight.cs
- MembershipUser.cs
- ComboBoxItem.cs
- EventListenerClientSide.cs
- ViewDesigner.cs
- PathData.cs
- FileUtil.cs
- SequenceNumber.cs
- TogglePattern.cs
- DataBoundControlAdapter.cs
- SqlMethodTransformer.cs
- NameNode.cs
- FreeFormDragDropManager.cs
- PtsContext.cs
- SqlUdtInfo.cs
- IListConverters.cs
- EmptyQuery.cs
- Point3DIndependentAnimationStorage.cs
- ListViewItemSelectionChangedEvent.cs
- ContainerSelectorGlyph.cs
- TimerElapsedEvenArgs.cs
- ConstraintCollection.cs
- PropertyEntry.cs
- JobStaple.cs
- TextServicesManager.cs
- Psha1DerivedKeyGenerator.cs
- Rect3DValueSerializer.cs
- ScriptingJsonSerializationSection.cs
- PeerSecurityHelpers.cs
- SqlVisitor.cs
- TypefaceMetricsCache.cs
- RefreshEventArgs.cs
- safex509handles.cs
- ColorMap.cs
- WorkflowMarkupSerializer.cs
- JournalEntryStack.cs
- HtmlInputText.cs
- PropertyBuilder.cs
- X509RecipientCertificateClientElement.cs
- Switch.cs
- HandlerBase.cs
- RecipientInfo.cs
- CommentAction.cs
- SurrogateEncoder.cs
- ComplexType.cs
- ItemCheckedEvent.cs
- DataGridViewTopRowAccessibleObject.cs
- HtmlTableCell.cs
- XmlAttributeAttribute.cs
- HasCopySemanticsAttribute.cs
- Matrix.cs
- ProviderCollection.cs
- IdentityHolder.cs
- SuppressMessageAttribute.cs
- RectConverter.cs
- XPathEmptyIterator.cs
- QilParameter.cs
- ProviderConnectionPointCollection.cs
- SecurityAlgorithmSuite.cs
- TemplateGroupCollection.cs
- PasswordBox.cs
- MethodExpr.cs
- DetailsViewInsertedEventArgs.cs
- Storyboard.cs
- _BaseOverlappedAsyncResult.cs
- DataObjectEventArgs.cs
- CqlErrorHelper.cs
- HtmlLink.cs
- StructureChangedEventArgs.cs
- _MultipleConnectAsync.cs
- LifetimeServices.cs
- NameValueSectionHandler.cs
- SqlVersion.cs
- Codec.cs