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
- RoleExceptions.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- StateManagedCollection.cs
- PageBreakRecord.cs
- InputEventArgs.cs
- XmlSchemaImport.cs
- StringPropertyBuilder.cs
- ServiceDescriptions.cs
- ServiceNameElement.cs
- StyleSheet.cs
- SqlDelegatedTransaction.cs
- AssociationProvider.cs
- KeyNotFoundException.cs
- XslCompiledTransform.cs
- XmlAttributes.cs
- TransactionValidationBehavior.cs
- SecurityDescriptor.cs
- InstanceDataCollectionCollection.cs
- RequestCacheEntry.cs
- TextEditorCopyPaste.cs
- PerSessionInstanceContextProvider.cs
- DataGridViewCellValueEventArgs.cs
- ClientRolePrincipal.cs
- WinFormsSpinner.cs
- RightsManagementEncryptedStream.cs
- Attribute.cs
- MethodCallTranslator.cs
- ExpressionLink.cs
- _NetworkingPerfCounters.cs
- DataTableMappingCollection.cs
- BaseTemplateParser.cs
- GridViewDeletedEventArgs.cs
- CodeSpit.cs
- SecureStringHasher.cs
- SourceChangedEventArgs.cs
- ImageList.cs
- SearchForVirtualItemEventArgs.cs
- TypeNameConverter.cs
- PropertyChangedEventArgs.cs
- MediaPlayerState.cs
- TimerTable.cs
- InProcStateClientManager.cs
- DependencyObject.cs
- XmlReader.cs
- XmlElementList.cs
- BamlTreeUpdater.cs
- SetStoryboardSpeedRatio.cs
- ArrangedElement.cs
- BrowserDefinition.cs
- DataGridColumnReorderingEventArgs.cs
- GeometryModel3D.cs
- DesignerLoader.cs
- XmlDesigner.cs
- DragDrop.cs
- StringComparer.cs
- CalendarDay.cs
- ConfigurationValues.cs
- CodeTypeReferenceExpression.cs
- Light.cs
- Renderer.cs
- Crc32.cs
- RichTextBox.cs
- DataRecordInternal.cs
- OdbcConnectionStringbuilder.cs
- _IPv4Address.cs
- _OSSOCK.cs
- HandlerMappingMemo.cs
- MessageSecurityTokenVersion.cs
- ValidateNames.cs
- CompiledELinqQueryState.cs
- AutomationPropertyInfo.cs
- WindowsStatusBar.cs
- StylusCollection.cs
- ThreadExceptionDialog.cs
- Compress.cs
- UnaryExpressionHelper.cs
- CodeGeneratorOptions.cs
- ExportOptions.cs
- NestedContainer.cs
- ResourceExpression.cs
- RequestStatusBarUpdateEventArgs.cs
- ToolstripProfessionalRenderer.cs
- CodeBlockBuilder.cs
- OpenTypeCommon.cs
- GiveFeedbackEventArgs.cs
- DesignerCommandAdapter.cs
- BaseValidator.cs
- InheritanceService.cs
- Faults.cs
- ResolveMatchesCD1.cs
- PeerTransportListenAddressValidatorAttribute.cs
- GifBitmapEncoder.cs
- Matrix3D.cs
- TraceHandlerErrorFormatter.cs
- CopyOfAction.cs
- NetNamedPipeSecurityElement.cs
- DictionaryBase.cs
- ComEventsMethod.cs
- WebUtil.cs
- SimpleRecyclingCache.cs