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
- RangeContentEnumerator.cs
- WebPartsPersonalizationAuthorization.cs
- FreezableDefaultValueFactory.cs
- PageVisual.cs
- ConditionedDesigner.cs
- DbProviderManifest.cs
- WindowsTitleBar.cs
- BlockCollection.cs
- METAHEADER.cs
- SectionInput.cs
- MarshalDirectiveException.cs
- DbConnectionFactory.cs
- StandardBindingElementCollection.cs
- Stroke2.cs
- TimeZoneInfo.cs
- WebHeaderCollection.cs
- DashStyle.cs
- XXXInfos.cs
- GridViewEditEventArgs.cs
- ClosureBinding.cs
- InstanceLockedException.cs
- CustomPeerResolverService.cs
- RtfToXamlLexer.cs
- GetIndexBinder.cs
- DragEvent.cs
- Translator.cs
- XmlNodeWriter.cs
- Model3DGroup.cs
- TabControlCancelEvent.cs
- NamedPipeWorkerProcess.cs
- Brush.cs
- WorkflowTransactionService.cs
- MapPathBasedVirtualPathProvider.cs
- ConnectionPoolManager.cs
- XPathDocument.cs
- SerializationObjectManager.cs
- Transform.cs
- EditorPartChrome.cs
- TextElement.cs
- Common.cs
- JsonEnumDataContract.cs
- CopyAttributesAction.cs
- Attributes.cs
- AppModelKnownContentFactory.cs
- ListBoxAutomationPeer.cs
- CodeTypeReference.cs
- cache.cs
- CodeDelegateCreateExpression.cs
- PositiveTimeSpanValidatorAttribute.cs
- StringUtil.cs
- CodeRemoveEventStatement.cs
- StatusBarItem.cs
- ListViewGroupConverter.cs
- PrinterResolution.cs
- CookielessHelper.cs
- TableItemProviderWrapper.cs
- GlyphRunDrawing.cs
- AppDomainManager.cs
- _Rfc2616CacheValidators.cs
- NonParentingControl.cs
- LostFocusEventManager.cs
- ServiceReference.cs
- CultureTable.cs
- Scripts.cs
- PropertyEmitterBase.cs
- SelfIssuedAuthAsymmetricKey.cs
- SemanticValue.cs
- DataGridViewLayoutData.cs
- Single.cs
- XmlDataSourceView.cs
- ScriptingWebServicesSectionGroup.cs
- TransportChannelListener.cs
- GcSettings.cs
- SafeRightsManagementQueryHandle.cs
- RegexCompiler.cs
- ManagedFilter.cs
- AutomationEventArgs.cs
- ProxyHwnd.cs
- SwitchLevelAttribute.cs
- StrokeNodeOperations2.cs
- RSAOAEPKeyExchangeDeformatter.cs
- OperatingSystem.cs
- D3DImage.cs
- FontStyles.cs
- WebPartRestoreVerb.cs
- ReadOnlyDictionary.cs
- PanelStyle.cs
- ScrollPattern.cs
- MainMenu.cs
- TemplateControlBuildProvider.cs
- DataControlPagerLinkButton.cs
- XmlSignatureManifest.cs
- WebPartMovingEventArgs.cs
- TimeIntervalCollection.cs
- XPathSelfQuery.cs
- ClientSettingsSection.cs
- SoapAttributes.cs
- ProfileInfo.cs
- DoubleIndependentAnimationStorage.cs
- GeneralTransform3DTo2D.cs