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
- VideoDrawing.cs
- ComplexTypeEmitter.cs
- PrimitiveXmlSerializers.cs
- CancelEventArgs.cs
- CompleteWizardStep.cs
- XhtmlBasicPageAdapter.cs
- TextEffectCollection.cs
- User.cs
- Attributes.cs
- MouseWheelEventArgs.cs
- loginstatus.cs
- WebPartDisplayMode.cs
- QilXmlReader.cs
- Camera.cs
- HandleCollector.cs
- GenericWebPart.cs
- RemotingServices.cs
- InstanceDataCollection.cs
- PackageRelationship.cs
- StandardBindingImporter.cs
- DataColumnCollection.cs
- SplitterPanel.cs
- PropertyEmitterBase.cs
- ResourceReferenceKeyNotFoundException.cs
- ContextQuery.cs
- SortedDictionary.cs
- DelegateTypeInfo.cs
- CodeSnippetTypeMember.cs
- OleDbConnection.cs
- CultureSpecificCharacterBufferRange.cs
- DataServiceException.cs
- RangeValueProviderWrapper.cs
- SqlTypeConverter.cs
- RuleSettings.cs
- XmlElementAttributes.cs
- ControlParameter.cs
- DataProtection.cs
- CloseCollectionAsyncResult.cs
- Literal.cs
- WebBrowserSiteBase.cs
- ManagementExtension.cs
- CodeDelegateInvokeExpression.cs
- TemplateControl.cs
- QueryRewriter.cs
- OletxResourceManager.cs
- MemberPath.cs
- NumericUpDownAccelerationCollection.cs
- DtdParser.cs
- ProxyRpc.cs
- OAVariantLib.cs
- AxHost.cs
- IgnorePropertiesAttribute.cs
- SelectedDatesCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- SHA256CryptoServiceProvider.cs
- RoleExceptions.cs
- DefaultBindingPropertyAttribute.cs
- ReadingWritingEntityEventArgs.cs
- CompressStream.cs
- GridLengthConverter.cs
- SafeSerializationManager.cs
- SqlLiftIndependentRowExpressions.cs
- XmlHierarchicalEnumerable.cs
- CompilationRelaxations.cs
- HttpRequest.cs
- TableLayoutRowStyleCollection.cs
- ProxyGenerationError.cs
- OutputCacheModule.cs
- OAVariantLib.cs
- FragmentQueryProcessor.cs
- XmlElement.cs
- WebServiceFault.cs
- AggregatePushdown.cs
- HyperLinkField.cs
- HashCryptoHandle.cs
- ControlBuilderAttribute.cs
- Brush.cs
- File.cs
- ZoneButton.cs
- TreeNodeCollection.cs
- BulletedList.cs
- MemberInfoSerializationHolder.cs
- RuleSetDialog.cs
- DrawListViewColumnHeaderEventArgs.cs
- Validator.cs
- ImageIndexConverter.cs
- RelationshipWrapper.cs
- UnknownMessageReceivedEventArgs.cs
- Normalization.cs
- BamlVersionHeader.cs
- NodeCounter.cs
- DataGridViewRowHeaderCell.cs
- PtsHost.cs
- AttachedPropertyBrowsableAttribute.cs
- BufferedGraphicsManager.cs
- BezierSegment.cs
- InstanceDescriptor.cs
- AbstractExpressions.cs
- AuthorizationRuleCollection.cs
- securitycriticaldataClass.cs