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
- TextElementCollection.cs
- ReferenceEqualityComparer.cs
- CollectionBase.cs
- ExceptionAggregator.cs
- OAVariantLib.cs
- ScopelessEnumAttribute.cs
- TextCollapsingProperties.cs
- KeyGestureConverter.cs
- X509CertificateCollection.cs
- ObjectAnimationBase.cs
- EventWaitHandleSecurity.cs
- XmlAnyElementAttributes.cs
- MetaModel.cs
- ReturnType.cs
- ToolBarPanel.cs
- SignatureToken.cs
- NotifyCollectionChangedEventArgs.cs
- MultiPartWriter.cs
- SemanticResultValue.cs
- DtdParser.cs
- SocketElement.cs
- DataConnectionHelper.cs
- ThaiBuddhistCalendar.cs
- New.cs
- BaseDataList.cs
- ColumnWidthChangedEvent.cs
- VisualBasicSettings.cs
- StartUpEventArgs.cs
- EmptyElement.cs
- HttpResponseHeader.cs
- MemberInfoSerializationHolder.cs
- AccessDataSourceView.cs
- ScriptBehaviorDescriptor.cs
- UserControlFileEditor.cs
- SiteMapProvider.cs
- XPathNavigatorReader.cs
- UserControl.cs
- UseLicense.cs
- EntityWrapper.cs
- ReaderWriterLock.cs
- HTMLTextWriter.cs
- ToolCreatedEventArgs.cs
- InternalConfigConfigurationFactory.cs
- ArrayWithOffset.cs
- Walker.cs
- SqlConnectionPoolProviderInfo.cs
- RequiredAttributeAttribute.cs
- SecurityStateEncoder.cs
- SmtpException.cs
- BitmapVisualManager.cs
- WebBrowserContainer.cs
- DbParameterCollection.cs
- MSAANativeProvider.cs
- CalendarKeyboardHelper.cs
- MissingFieldException.cs
- WindowCollection.cs
- SqlBulkCopyColumnMapping.cs
- SupportingTokenSpecification.cs
- PackagePartCollection.cs
- NamespaceExpr.cs
- TypeSource.cs
- JsonSerializer.cs
- PersianCalendar.cs
- BidPrivateBase.cs
- FragmentQueryProcessor.cs
- TypedDataSetSchemaImporterExtension.cs
- SqlDataSourceFilteringEventArgs.cs
- HostedHttpContext.cs
- DataGridViewCellPaintingEventArgs.cs
- MediaEntryAttribute.cs
- BoundingRectTracker.cs
- HMAC.cs
- CornerRadius.cs
- InvokePatternIdentifiers.cs
- HttpContext.cs
- TrackingMemoryStream.cs
- ButtonChrome.cs
- GridViewColumnHeader.cs
- infer.cs
- GetChildSubtree.cs
- FloaterBaseParagraph.cs
- Pen.cs
- DataGridPagingPage.cs
- OdbcEnvironment.cs
- AsyncStreamReader.cs
- XmlExtensionFunction.cs
- ComboBoxRenderer.cs
- RequestTimeoutManager.cs
- BmpBitmapDecoder.cs
- FormViewModeEventArgs.cs
- Propagator.cs
- PropertyChangedEventManager.cs
- EventItfInfo.cs
- TextMetrics.cs
- PartialList.cs
- Int16Storage.cs
- FixedLineResult.cs
- TagMapCollection.cs
- PointAnimationUsingKeyFrames.cs
- AnonymousIdentificationModule.cs