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
- objectresult_tresulttype.cs
- BamlLocalizableResource.cs
- filewebrequest.cs
- EntityDataSourceChangingEventArgs.cs
- CfgArc.cs
- _StreamFramer.cs
- HttpChannelHelpers.cs
- X509PeerCertificateElement.cs
- unitconverter.cs
- ProfileServiceManager.cs
- SqlDataReader.cs
- XmlUtil.cs
- DynamicRendererThreadManager.cs
- FormatException.cs
- Vector3DAnimationUsingKeyFrames.cs
- Vector3DValueSerializer.cs
- IntersectQueryOperator.cs
- QilLoop.cs
- PerfCounters.cs
- BinaryObjectReader.cs
- TypeName.cs
- TemplateComponentConnector.cs
- EncoderReplacementFallback.cs
- UrlMappingsSection.cs
- JsonObjectDataContract.cs
- MsmqVerifier.cs
- MessageAction.cs
- StylusPointProperty.cs
- ServiceHostingEnvironmentSection.cs
- SqlTransaction.cs
- WebBrowserProgressChangedEventHandler.cs
- ParameterCollection.cs
- Int16.cs
- GroupLabel.cs
- Operator.cs
- OracleDataAdapter.cs
- HttpProtocolReflector.cs
- WorkflowNamespace.cs
- filewebrequest.cs
- CalendarDay.cs
- Logging.cs
- SettingsProperty.cs
- ToolStripDesignerAvailabilityAttribute.cs
- OleDbDataReader.cs
- BamlResourceDeserializer.cs
- EventMetadata.cs
- HttpResponseHeader.cs
- _NativeSSPI.cs
- GrammarBuilder.cs
- ServiceDescriptionReflector.cs
- DefaultDialogButtons.cs
- MetadataFile.cs
- BamlLocalizableResourceKey.cs
- SelectorAutomationPeer.cs
- LoginUtil.cs
- DataGridGeneralPage.cs
- XmlIgnoreAttribute.cs
- DictionaryMarkupSerializer.cs
- JsonSerializer.cs
- OutputCacheProfileCollection.cs
- ClientBuildManagerCallback.cs
- cookiecontainer.cs
- SingleBodyParameterMessageFormatter.cs
- PreviewPrintController.cs
- WindowsBrush.cs
- DefaultObjectSerializer.cs
- ToolStripControlHost.cs
- Matrix3DStack.cs
- InternalControlCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolStripAdornerWindowService.cs
- UntrustedRecipientException.cs
- FormatterConverter.cs
- ReadOnlyHierarchicalDataSource.cs
- Rijndael.cs
- webeventbuffer.cs
- DataGridCheckBoxColumn.cs
- UpWmlPageAdapter.cs
- TemplateContent.cs
- PassportAuthentication.cs
- ImageAnimator.cs
- CmsInterop.cs
- ApplicationInfo.cs
- TextServicesCompartment.cs
- XmlCountingReader.cs
- WmlFormAdapter.cs
- KnownTypes.cs
- ConstraintManager.cs
- FontUnit.cs
- TimeIntervalCollection.cs
- Parser.cs
- SocketCache.cs
- TemplateBuilder.cs
- Base64Decoder.cs
- SynchronizedInputHelper.cs
- xmlformatgeneratorstatics.cs
- ServerProtocol.cs
- DllNotFoundException.cs
- IBuiltInEvidence.cs
- ApplicationFileParser.cs