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
- CommandHelpers.cs
- SignedXml.cs
- StreamGeometryContext.cs
- NamedPipeHostedTransportConfiguration.cs
- AppDomainManager.cs
- FileUpload.cs
- WSFederationHttpSecurity.cs
- KnownTypesHelper.cs
- MediaElement.cs
- CodeDOMProvider.cs
- PreviewPageInfo.cs
- ErrorWebPart.cs
- TypeConverterBase.cs
- MenuAutomationPeer.cs
- Command.cs
- HeaderLabel.cs
- LineGeometry.cs
- ConstructorBuilder.cs
- PersonalizableTypeEntry.cs
- PersonalizationDictionary.cs
- XmlQueryType.cs
- CurrentChangedEventManager.cs
- DbMetaDataFactory.cs
- TextDecorationCollection.cs
- CroppedBitmap.cs
- FrameworkElementFactoryMarkupObject.cs
- TextAdaptor.cs
- RegexNode.cs
- ListViewPagedDataSource.cs
- DataGridTableCollection.cs
- QueryCursorEventArgs.cs
- diagnosticsswitches.cs
- StreamMarshaler.cs
- HtmlInputButton.cs
- ClientSession.cs
- ClientConvert.cs
- XmlSchemaElement.cs
- CodeExpressionStatement.cs
- XPathPatternBuilder.cs
- XmlChildNodes.cs
- FloaterBaseParagraph.cs
- HostingEnvironmentSection.cs
- RadioButtonStandardAdapter.cs
- XmlNamespaceMappingCollection.cs
- JpegBitmapEncoder.cs
- SwitchLevelAttribute.cs
- EntityDataSourceDesignerHelper.cs
- FigureParagraph.cs
- DocumentXPathNavigator.cs
- HttpChannelBindingToken.cs
- CredentialCache.cs
- ArgIterator.cs
- ExeContext.cs
- ToolStripDropDown.cs
- WebContext.cs
- ServicesSection.cs
- BCryptNative.cs
- ToolStripDropDownMenu.cs
- FreezableCollection.cs
- EntityObject.cs
- MaskedTextProvider.cs
- PrePostDescendentsWalker.cs
- TrackPoint.cs
- ProgressChangedEventArgs.cs
- PersonalizationDictionary.cs
- DataGridViewCellConverter.cs
- SwitchAttribute.cs
- AttributeParameterInfo.cs
- HttpProxyCredentialType.cs
- OdbcEnvironment.cs
- SerialPinChanges.cs
- OracleConnectionFactory.cs
- SimpleBitVector32.cs
- ListViewInsertEventArgs.cs
- UnaryQueryOperator.cs
- LoginUtil.cs
- SamlSerializer.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlEncoding.cs
- OLEDB_Enum.cs
- MultiAsyncResult.cs
- VisualStyleElement.cs
- BeginEvent.cs
- DetailsViewUpdateEventArgs.cs
- StreamGeometryContext.cs
- Stackframe.cs
- TransactionValidationBehavior.cs
- ClientTargetCollection.cs
- TreeNode.cs
- DynamicQueryableWrapper.cs
- AddIn.cs
- TemplateKeyConverter.cs
- xmlformatgeneratorstatics.cs
- ExpandedWrapper.cs
- ConstructorBuilder.cs
- JsonUriDataContract.cs
- SchemaObjectWriter.cs
- CharAnimationBase.cs
- AudioBase.cs
- FrameAutomationPeer.cs