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
- XmlExtensionFunction.cs
- DetailsViewUpdateEventArgs.cs
- Ipv6Element.cs
- CacheRequest.cs
- ViewCellSlot.cs
- TextEndOfParagraph.cs
- SystemBrushes.cs
- RawUIStateInputReport.cs
- Frame.cs
- ReadOnlyDictionary.cs
- SafeProcessHandle.cs
- DataGridViewRowPrePaintEventArgs.cs
- ExpressionParser.cs
- EFColumnProvider.cs
- RoutedEvent.cs
- ClientFormsAuthenticationCredentials.cs
- Size3DValueSerializer.cs
- TopClause.cs
- UInt16.cs
- ServiceBusyException.cs
- LogSwitch.cs
- AssemblyAttributesGoHere.cs
- ChildDocumentBlock.cs
- XmlChoiceIdentifierAttribute.cs
- WindowsHyperlink.cs
- ProfilePropertySettings.cs
- ProviderCommandInfoUtils.cs
- AutomationPropertyInfo.cs
- ButtonBase.cs
- KnownTypes.cs
- UrlAuthorizationModule.cs
- WeakRefEnumerator.cs
- AnnouncementInnerClientCD1.cs
- OdbcEnvironment.cs
- DocumentPageViewAutomationPeer.cs
- CodeTypeReferenceCollection.cs
- CompoundFileIOPermission.cs
- ListBox.cs
- LinkedList.cs
- SHA1Managed.cs
- ErrorView.xaml.cs
- ProxySimple.cs
- DataTrigger.cs
- streamingZipPartStream.cs
- EnvelopedPkcs7.cs
- Keyboard.cs
- TypedReference.cs
- HtmlControlDesigner.cs
- GridViewUpdateEventArgs.cs
- Debugger.cs
- XmlSchemaValidationException.cs
- DataGridViewLinkColumn.cs
- LineGeometry.cs
- WebPartConnectionsCancelEventArgs.cs
- IImplicitResourceProvider.cs
- messageonlyhwndwrapper.cs
- DesignerHierarchicalDataSourceView.cs
- ZoneMembershipCondition.cs
- WebPartEditorCancelVerb.cs
- StandardBindingElementCollection.cs
- MasterPage.cs
- FirstMatchCodeGroup.cs
- Compiler.cs
- UndoManager.cs
- XmlEncodedRawTextWriter.cs
- Graph.cs
- TextModifier.cs
- InkCanvasAutomationPeer.cs
- AutoGeneratedField.cs
- StyleSheet.cs
- SamlSubjectStatement.cs
- Span.cs
- ObjectDisposedException.cs
- Binding.cs
- ToolStripMenuItemCodeDomSerializer.cs
- Typography.cs
- GenericAuthenticationEventArgs.cs
- TransportSecurityProtocol.cs
- DataSourceView.cs
- SessionPageStatePersister.cs
- PickBranchDesigner.xaml.cs
- MethodCallTranslator.cs
- ActivityExecutionContext.cs
- KeyValueConfigurationElement.cs
- FileIOPermission.cs
- MissingMethodException.cs
- ReverseInheritProperty.cs
- DateTimeFormat.cs
- QueryTaskGroupState.cs
- SqlReorderer.cs
- SizeAnimation.cs
- TextPointerBase.cs
- RequestResizeEvent.cs
- Invariant.cs
- ImageCodecInfo.cs
- DispatcherSynchronizationContext.cs
- DateTimeConverter.cs
- CodeNamespace.cs
- ObjectListCommandCollection.cs
- HeaderCollection.cs