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
- EventLog.cs
- X509InitiatorCertificateClientElement.cs
- _HTTPDateParse.cs
- TransportBindingElementImporter.cs
- ChangeToolStripParentVerb.cs
- TextSegment.cs
- Synchronization.cs
- ColorAnimationBase.cs
- ListViewGroupConverter.cs
- AppDomainUnloadedException.cs
- ProtectedConfigurationSection.cs
- XpsDigitalSignature.cs
- IntranetCredentialPolicy.cs
- FileUpload.cs
- ObjectToIdCache.cs
- DataMemberListEditor.cs
- COM2ExtendedBrowsingHandler.cs
- OleDbRowUpdatingEvent.cs
- OlePropertyStructs.cs
- SelectingProviderEventArgs.cs
- MarshalDirectiveException.cs
- ExceptionValidationRule.cs
- ContactManager.cs
- SoapParser.cs
- QualificationDataAttribute.cs
- PropertyEmitter.cs
- ListViewDeleteEventArgs.cs
- CellRelation.cs
- EntryIndex.cs
- Size3D.cs
- WebPartTracker.cs
- UIHelper.cs
- ListDictionary.cs
- RSAProtectedConfigurationProvider.cs
- HttpFileCollection.cs
- Mutex.cs
- Touch.cs
- SqlCacheDependencyDatabase.cs
- BitmapPalette.cs
- UIElementParaClient.cs
- PrimarySelectionAdorner.cs
- TextEditorLists.cs
- BindingCollection.cs
- DoubleUtil.cs
- PrimitiveSchema.cs
- TransactionFlowElement.cs
- FunctionDescription.cs
- WindowsImpersonationContext.cs
- ObjectSecurity.cs
- MdImport.cs
- IteratorFilter.cs
- Preprocessor.cs
- FragmentQueryKB.cs
- DSACryptoServiceProvider.cs
- ScriptReferenceBase.cs
- DataGridViewCellStyleConverter.cs
- basevalidator.cs
- TextContainerHelper.cs
- CodeGenerator.cs
- StorageAssociationTypeMapping.cs
- DirectionalLight.cs
- Stack.cs
- OSFeature.cs
- Serializer.cs
- CompletedAsyncResult.cs
- HttpServerChannel.cs
- RC2CryptoServiceProvider.cs
- DataServiceExpressionVisitor.cs
- FlowPosition.cs
- SparseMemoryStream.cs
- ErrorFormatterPage.cs
- ToolStripPanelRenderEventArgs.cs
- ServiceNameElement.cs
- DataGridViewBindingCompleteEventArgs.cs
- QuaternionRotation3D.cs
- TextParentUndoUnit.cs
- SqlComparer.cs
- HTMLTagNameToTypeMapper.cs
- SoapFormatterSinks.cs
- Sequence.cs
- ToolZone.cs
- ScriptServiceAttribute.cs
- SoapParser.cs
- GeometryCombineModeValidation.cs
- CertificateManager.cs
- AnnotationComponentManager.cs
- DataContract.cs
- BlockUIContainer.cs
- CommonGetThemePartSize.cs
- QilExpression.cs
- Int16Storage.cs
- Aggregates.cs
- FrugalList.cs
- ListView.cs
- InfoCardListRequest.cs
- ObjectQueryProvider.cs
- AxHost.cs
- HandlerBase.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSchemaComplexContent.cs