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
- UtilityExtension.cs
- AesManaged.cs
- BinaryFormatterWriter.cs
- BitmapEncoder.cs
- ArgumentsParser.cs
- NameTable.cs
- VisualBasicHelper.cs
- DesignerDataTable.cs
- ProfileSettings.cs
- ListenerBinder.cs
- ConfigurationHelpers.cs
- OpacityConverter.cs
- ClientSideProviderDescription.cs
- GcHandle.cs
- HtmlForm.cs
- SafeNativeMethods.cs
- SamlConstants.cs
- XmlnsDictionary.cs
- Timer.cs
- documentation.cs
- DESCryptoServiceProvider.cs
- BatchServiceHost.cs
- mediaeventargs.cs
- GroupDescription.cs
- DrawingBrush.cs
- ChannelManagerService.cs
- MatchAttribute.cs
- ByteStorage.cs
- FileRecordSequence.cs
- PeerPresenceInfo.cs
- FixedDocumentSequencePaginator.cs
- DocumentXmlWriter.cs
- CellRelation.cs
- ToggleButtonAutomationPeer.cs
- Query.cs
- SqlWebEventProvider.cs
- ReadingWritingEntityEventArgs.cs
- EditCommandColumn.cs
- BindingManagerDataErrorEventArgs.cs
- WebPartEventArgs.cs
- ClientBuildManager.cs
- TreeNodeMouseHoverEvent.cs
- CodeAccessPermission.cs
- DragStartedEventArgs.cs
- PerformanceCounters.cs
- RichTextBoxConstants.cs
- ProxyGenerationError.cs
- Decoder.cs
- HuffmanTree.cs
- CodeTypeReferenceCollection.cs
- SystemIPv6InterfaceProperties.cs
- DragDeltaEventArgs.cs
- Converter.cs
- formatter.cs
- RawMouseInputReport.cs
- DbInsertCommandTree.cs
- TypeValidationEventArgs.cs
- EntityProviderFactory.cs
- NativeMethods.cs
- WebPartCloseVerb.cs
- RemoteWebConfigurationHostStream.cs
- AlignmentXValidation.cs
- ProfileBuildProvider.cs
- ColumnMapCopier.cs
- ImageCreator.cs
- WizardPanelChangingEventArgs.cs
- PropertyRecord.cs
- Label.cs
- DbMetaDataCollectionNames.cs
- EdmItemError.cs
- xml.cs
- SystemIPGlobalProperties.cs
- BlockUIContainer.cs
- DateTime.cs
- CodeMethodInvokeExpression.cs
- ConfigXmlWhitespace.cs
- SettingsPropertyCollection.cs
- EventlogProvider.cs
- WCFBuildProvider.cs
- ImageAutomationPeer.cs
- AttributeEmitter.cs
- EqualityComparer.cs
- NameValuePair.cs
- EmptyCollection.cs
- StylusPointPropertyId.cs
- DateTimeAutomationPeer.cs
- TreeIterator.cs
- HttpWriter.cs
- XPathException.cs
- MethodInfo.cs
- DiscoveryInnerClientManaged11.cs
- SqlDataSourceEnumerator.cs
- InternalControlCollection.cs
- PackageDigitalSignatureManager.cs
- ToReply.cs
- AssemblyInfo.cs
- CipherData.cs
- AccessControlEntry.cs
- CompilationRelaxations.cs
- XPathExpr.cs