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
- HttpListener.cs
- WorkflowInstanceRecord.cs
- SqlServices.cs
- WebResourceAttribute.cs
- MissingMethodException.cs
- ExpressionNormalizer.cs
- ColumnPropertiesGroup.cs
- MouseGestureValueSerializer.cs
- IDQuery.cs
- WindowProviderWrapper.cs
- MaterialGroup.cs
- ResizeBehavior.cs
- CreateParams.cs
- ThreadStateException.cs
- MetaType.cs
- FreezableDefaultValueFactory.cs
- xml.cs
- OverlappedContext.cs
- EventWaitHandleSecurity.cs
- webbrowsersite.cs
- WSFederationHttpBindingElement.cs
- ToolboxItemSnapLineBehavior.cs
- DbProviderFactoriesConfigurationHandler.cs
- XmlHierarchicalDataSourceView.cs
- GridViewUpdateEventArgs.cs
- RelationshipConverter.cs
- ChannelTracker.cs
- HandleRef.cs
- MailAddressCollection.cs
- ExpandableObjectConverter.cs
- DataGridTextColumn.cs
- _AcceptOverlappedAsyncResult.cs
- StorageMappingItemCollection.cs
- OracleRowUpdatedEventArgs.cs
- DataGridViewRowHeaderCell.cs
- ZipIOCentralDirectoryBlock.cs
- PageParser.cs
- Decoder.cs
- IPAddressCollection.cs
- WS2007FederationHttpBindingElement.cs
- XmlCharCheckingWriter.cs
- State.cs
- HtmlTableCellCollection.cs
- StandardOleMarshalObject.cs
- XsltFunctions.cs
- xmlfixedPageInfo.cs
- SizeFConverter.cs
- CompilationSection.cs
- JulianCalendar.cs
- TypeConstant.cs
- ResourcesChangeInfo.cs
- RoutedUICommand.cs
- StorageMappingFragment.cs
- QueryOperatorEnumerator.cs
- EntitySqlQueryCacheKey.cs
- CharacterBuffer.cs
- DockAndAnchorLayout.cs
- UnsafeNativeMethods.cs
- HtmlShim.cs
- SqlProviderUtilities.cs
- SqlDependency.cs
- MenuEventArgs.cs
- KeyedCollection.cs
- NetSectionGroup.cs
- ZipIOLocalFileDataDescriptor.cs
- _emptywebproxy.cs
- KeyPullup.cs
- RelationshipNavigation.cs
- DBParameter.cs
- NamespaceList.cs
- LoginDesigner.cs
- CounterCreationDataCollection.cs
- SystemUdpStatistics.cs
- Image.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ListManagerBindingsCollection.cs
- RelatedEnd.cs
- TriggerCollection.cs
- QilXmlWriter.cs
- util.cs
- SqlDataSourceEnumerator.cs
- DataGridHeaderBorder.cs
- EncryptedKeyIdentifierClause.cs
- PageCatalogPart.cs
- CodeGotoStatement.cs
- PathSegment.cs
- Annotation.cs
- SecurityException.cs
- MonthChangedEventArgs.cs
- XamlFigureLengthSerializer.cs
- WriteTimeStream.cs
- SqlDataSourceCommandParser.cs
- _BufferOffsetSize.cs
- ToolStripOverflow.cs
- WebPartTransformerAttribute.cs
- UnsafePeerToPeerMethods.cs
- TranslateTransform.cs
- TextBox.cs
- Win32.cs
- MenuItemBinding.cs