Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / FocusChangedEventArgs.cs / 1 / FocusChangedEventArgs.cs
using System; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Input { ////// The KeyboardFocusChangedEventArgs class contains information about key states. /// public class KeyboardFocusChangedEventArgs : KeyboardEventArgs { ////// Constructs an instance of the KeyboardFocusChangedEventArgs class. /// /// /// The logical keyboard device associated with this event. /// /// /// The time when the input occured. /// /// /// The element that previously had focus. /// /// /// The element that now has focus. /// public KeyboardFocusChangedEventArgs(KeyboardDevice keyboard, int timestamp, IInputElement oldFocus, IInputElement newFocus) : base(keyboard, timestamp) { if (oldFocus != null && !InputElement.IsValid(oldFocus)) throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, oldFocus.GetType())); if (newFocus != null && !InputElement.IsValid(newFocus)) throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, newFocus.GetType())); _oldFocus = oldFocus; _newFocus = newFocus; } ////// The element that previously had focus. /// public IInputElement OldFocus { get {return _oldFocus;} } ////// The element that now has focus. /// public IInputElement NewFocus { get {return _newFocus;} } ////// 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) { KeyboardFocusChangedEventHandler handler = (KeyboardFocusChangedEventHandler) genericHandler; handler(genericTarget, this); } private IInputElement _oldFocus; private IInputElement _newFocus; } } // 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
- XPathDescendantIterator.cs
- ViewManager.cs
- FederatedMessageSecurityOverHttp.cs
- WpfKnownTypeInvoker.cs
- FixedPage.cs
- ElementAction.cs
- TableCell.cs
- CompareInfo.cs
- Rotation3D.cs
- GlyphTypeface.cs
- Mutex.cs
- MemberDescriptor.cs
- TextEditorTables.cs
- KeyValueInternalCollection.cs
- SortedDictionary.cs
- Resources.Designer.cs
- LineServicesRun.cs
- XmlObjectSerializerWriteContext.cs
- ContextStaticAttribute.cs
- MouseActionValueSerializer.cs
- PointHitTestResult.cs
- AppendHelper.cs
- PreviewKeyDownEventArgs.cs
- BamlMapTable.cs
- Page.cs
- DataBinder.cs
- SHA256Managed.cs
- WebBrowserNavigatedEventHandler.cs
- SchemaSetCompiler.cs
- WaitHandleCannotBeOpenedException.cs
- DataControlLinkButton.cs
- ToolStripTemplateNode.cs
- ProtocolsConfiguration.cs
- SetStoryboardSpeedRatio.cs
- WindowsRebar.cs
- IOThreadTimer.cs
- SessionStateSection.cs
- ParserExtension.cs
- CellTreeNode.cs
- BooleanExpr.cs
- _RequestCacheProtocol.cs
- Message.cs
- ExpressionBuilder.cs
- TypeLibConverter.cs
- WindowsFormsHost.cs
- PathTooLongException.cs
- BindingMemberInfo.cs
- CustomAttributeBuilder.cs
- SystemDiagnosticsSection.cs
- Int16KeyFrameCollection.cs
- PageStatePersister.cs
- XmlEntity.cs
- InteropExecutor.cs
- CommandDesigner.cs
- ProgressChangedEventArgs.cs
- ProfessionalColors.cs
- DataBindingCollection.cs
- SingleAnimationUsingKeyFrames.cs
- namescope.cs
- ComponentSerializationService.cs
- ClassDataContract.cs
- SqlGatherProducedAliases.cs
- XmlToDatasetMap.cs
- TraceUtils.cs
- WebPartTransformerCollection.cs
- StorageEndPropertyMapping.cs
- HttpResponseInternalWrapper.cs
- SyndicationSerializer.cs
- FrameworkContentElement.cs
- MarkedHighlightComponent.cs
- CommandDevice.cs
- Emitter.cs
- IndexedGlyphRun.cs
- DBConnection.cs
- DataExchangeServiceBinder.cs
- _AutoWebProxyScriptHelper.cs
- TranslateTransform3D.cs
- SqlInternalConnectionTds.cs
- DirectoryNotFoundException.cs
- MemberHolder.cs
- DataGridViewCellValueEventArgs.cs
- CrossContextChannel.cs
- UInt16.cs
- XmlEntityReference.cs
- FontDialog.cs
- FakeModelPropertyImpl.cs
- SequentialUshortCollection.cs
- LocationUpdates.cs
- MimeXmlReflector.cs
- BoundsDrawingContextWalker.cs
- BezierSegment.cs
- oledbmetadatacolumnnames.cs
- GeneralTransform3DGroup.cs
- XsltLoader.cs
- TypeBuilderInstantiation.cs
- ArcSegment.cs
- GridViewCancelEditEventArgs.cs
- Token.cs
- TextTreeTextNode.cs
- DefaultAuthorizationContext.cs