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
- StackSpiller.Bindings.cs
- WCFModelStrings.Designer.cs
- SerializationInfoEnumerator.cs
- _SSPISessionCache.cs
- ASCIIEncoding.cs
- SimpleHandlerBuildProvider.cs
- FlowLayoutSettings.cs
- Operators.cs
- NavigatorOutput.cs
- CommandHelpers.cs
- ZipIORawDataFileBlock.cs
- SyndicationFeedFormatter.cs
- TemplateField.cs
- AnonymousIdentificationSection.cs
- DataServiceRequestException.cs
- CodeSnippetCompileUnit.cs
- Misc.cs
- NeutralResourcesLanguageAttribute.cs
- SqlCacheDependencySection.cs
- TextRangeSerialization.cs
- Decorator.cs
- CommandTreeTypeHelper.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataGridRowDetailsEventArgs.cs
- JsonQueryStringConverter.cs
- DoubleCollectionConverter.cs
- LocatorPartList.cs
- ToolbarAUtomationPeer.cs
- WebPartDescriptionCollection.cs
- DetailsViewUpdateEventArgs.cs
- CommandDesigner.cs
- StylusPoint.cs
- TrustManager.cs
- CurrencyManager.cs
- Task.cs
- _Semaphore.cs
- EntityCommandDefinition.cs
- ZipIOLocalFileBlock.cs
- ControlBindingsCollection.cs
- IISUnsafeMethods.cs
- FilterableAttribute.cs
- InputScopeConverter.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- TransformerInfoCollection.cs
- TreeWalkHelper.cs
- BezierSegment.cs
- CleanUpVirtualizedItemEventArgs.cs
- ListBoxItemAutomationPeer.cs
- MenuItemStyleCollection.cs
- DocumentSignatureManager.cs
- MultipartIdentifier.cs
- Viewport3DAutomationPeer.cs
- SpeechRecognitionEngine.cs
- PrivilegedConfigurationManager.cs
- RewritingValidator.cs
- TaiwanLunisolarCalendar.cs
- SizeIndependentAnimationStorage.cs
- ToolboxBitmapAttribute.cs
- TCPListener.cs
- CategoryNameCollection.cs
- StringUtil.cs
- ButtonFieldBase.cs
- DbParameterCollectionHelper.cs
- DependencyPropertyChangedEventArgs.cs
- ZipIOLocalFileBlock.cs
- PropertyConverter.cs
- PersonalizationStateInfo.cs
- DataBinder.cs
- UdpDiscoveryMessageFilter.cs
- TextInfo.cs
- PieceDirectory.cs
- _IPv6Address.cs
- MulticastDelegate.cs
- ArglessEventHandlerProxy.cs
- SimpleHandlerFactory.cs
- EarlyBoundInfo.cs
- SqlDependency.cs
- DataFormat.cs
- NativeObjectSecurity.cs
- Span.cs
- TagMapInfo.cs
- grammarelement.cs
- Completion.cs
- LayoutExceptionEventArgs.cs
- UseAttributeSetsAction.cs
- DataServiceHostFactory.cs
- CodeRemoveEventStatement.cs
- CannotUnloadAppDomainException.cs
- OperatorExpressions.cs
- SizeAnimationClockResource.cs
- LoginName.cs
- CheckableControlBaseAdapter.cs
- SapiRecognizer.cs
- UnmanagedBitmapWrapper.cs
- LessThanOrEqual.cs
- EntitySqlQueryCacheEntry.cs
- PowerModeChangedEventArgs.cs
- RecognizedAudio.cs
- BamlBinaryWriter.cs
- WebPartHeaderCloseVerb.cs