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
- WebPartDisplayModeCollection.cs
- RtfControlWordInfo.cs
- FormatterServices.cs
- StreamDocument.cs
- Symbol.cs
- InputScope.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SiblingIterators.cs
- FastEncoder.cs
- XmlSchemaImport.cs
- RegistrySecurity.cs
- ToolStripLocationCancelEventArgs.cs
- FontInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- QilTargetType.cs
- UntrustedRecipientException.cs
- InstancePersistence.cs
- IsolatedStorage.cs
- KeyInstance.cs
- TemplateInstanceAttribute.cs
- XmlReaderSettings.cs
- ResourceContainer.cs
- TagPrefixCollection.cs
- RequiredAttributeAttribute.cs
- AutomationEvent.cs
- PeerNameRecord.cs
- WebPartPersonalization.cs
- TargetException.cs
- PropertyCollection.cs
- ComponentChangingEvent.cs
- UdpSocket.cs
- XmlSchemaComplexContentRestriction.cs
- Shape.cs
- SystemGatewayIPAddressInformation.cs
- ServiceHttpModule.cs
- Style.cs
- ListenerSessionConnection.cs
- GridViewDeleteEventArgs.cs
- RewritingSimplifier.cs
- HMAC.cs
- precedingquery.cs
- StreamWithDictionary.cs
- MenuRenderer.cs
- TableDetailsCollection.cs
- RemotingException.cs
- CultureInfoConverter.cs
- StreamUpdate.cs
- InternalCompensate.cs
- RulePatternOps.cs
- TreeView.cs
- WindowsSecurityTokenAuthenticator.cs
- NameSpaceEvent.cs
- HttpValueCollection.cs
- AssemblyAttributesGoHere.cs
- ComplexTypeEmitter.cs
- ObjectContext.cs
- StrokeNodeData.cs
- PersonalizationEntry.cs
- XmlJsonReader.cs
- RowUpdatedEventArgs.cs
- FunctionGenerator.cs
- BindingWorker.cs
- StrokeNodeData.cs
- TimelineGroup.cs
- ScrollChangedEventArgs.cs
- ToolStripComboBox.cs
- Stack.cs
- ChangeBlockUndoRecord.cs
- SystemUnicastIPAddressInformation.cs
- RepeaterItem.cs
- ColumnResizeUndoUnit.cs
- MetadataUtil.cs
- AccessControlList.cs
- SingleConverter.cs
- XmlQualifiedName.cs
- OleDragDropHandler.cs
- ServiceSettingsResponseInfo.cs
- CompensatableTransactionScopeActivityDesigner.cs
- EmptyControlCollection.cs
- SortKey.cs
- ProviderSettingsCollection.cs
- SpecularMaterial.cs
- Visual3D.cs
- TemplateField.cs
- XmlSchemaSet.cs
- TrackingMemoryStreamFactory.cs
- BasicAsyncResult.cs
- HashJoinQueryOperatorEnumerator.cs
- QueryCreatedEventArgs.cs
- ImageSource.cs
- FileChangesMonitor.cs
- WebPartEditorApplyVerb.cs
- SmtpReplyReader.cs
- SerializationFieldInfo.cs
- Emitter.cs
- XamlVector3DCollectionSerializer.cs
- HttpCookiesSection.cs
- NavigationEventArgs.cs
- TextRunTypographyProperties.cs
- XmlNodeList.cs