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
- PathParser.cs
- MissingSatelliteAssemblyException.cs
- metadatamappinghashervisitor.cs
- SelectManyQueryOperator.cs
- DataGridAddNewRow.cs
- WorkflowPrinting.cs
- DetailsViewInsertedEventArgs.cs
- IteratorFilter.cs
- WindowsSpinner.cs
- ContextProperty.cs
- RegexParser.cs
- ViewSimplifier.cs
- ProcessRequestArgs.cs
- SqlDataSourceView.cs
- ServicesSection.cs
- DesignTimeTemplateParser.cs
- XPathCompileException.cs
- GridViewSelectEventArgs.cs
- panel.cs
- InvalidProgramException.cs
- SamlAuthorityBinding.cs
- UserControl.cs
- CodeAttributeDeclarationCollection.cs
- Int32Rect.cs
- SqlDataSourceView.cs
- SqlGenericUtil.cs
- StoragePropertyMapping.cs
- URIFormatException.cs
- Pair.cs
- CompleteWizardStep.cs
- ThreadAbortException.cs
- DependencyPropertyDescriptor.cs
- ModuleElement.cs
- DataBindingList.cs
- SimpleWorkerRequest.cs
- UniqueConstraint.cs
- FontNameConverter.cs
- FlowLayout.cs
- CoTaskMemHandle.cs
- DataSourceViewSchemaConverter.cs
- ToolboxItemAttribute.cs
- HtmlInputImage.cs
- HwndProxyElementProvider.cs
- FileDialog.cs
- TemplateBuilder.cs
- AlignmentXValidation.cs
- basenumberconverter.cs
- CheckBoxRenderer.cs
- SecurityPermission.cs
- SpecularMaterial.cs
- QilGeneratorEnv.cs
- GifBitmapEncoder.cs
- DataGridToolTip.cs
- BulletedListEventArgs.cs
- DataGridRelationshipRow.cs
- SoapInteropTypes.cs
- AssociationSet.cs
- StringArrayConverter.cs
- DesignTimeTemplateParser.cs
- ObjectViewFactory.cs
- FunctionNode.cs
- TextTreeUndoUnit.cs
- SqlProcedureAttribute.cs
- PropertyEntry.cs
- SourceItem.cs
- Cell.cs
- SchemaTableOptionalColumn.cs
- NamespaceMapping.cs
- SafeNativeMethods.cs
- RemotingConfiguration.cs
- ProcessModelSection.cs
- XslNumber.cs
- CodePrimitiveExpression.cs
- Ipv6Element.cs
- BrowserCapabilitiesCodeGenerator.cs
- ReferencedAssemblyResolver.cs
- IntSumAggregationOperator.cs
- ComponentRenameEvent.cs
- FixedHyperLink.cs
- TextEditorTables.cs
- Processor.cs
- TypeConverterHelper.cs
- CacheOutputQuery.cs
- EntityTransaction.cs
- Imaging.cs
- DiscreteKeyFrames.cs
- XmlSchemaImporter.cs
- GiveFeedbackEvent.cs
- SqlWorkflowInstanceStore.cs
- ContainerUtilities.cs
- DataBoundControl.cs
- FileDialog.cs
- SchemaTableColumn.cs
- DynamicMethod.cs
- CmsInterop.cs
- TextPattern.cs
- DateTimePicker.cs
- XXXInfos.cs
- FileDialogPermission.cs
- ZipIOEndOfCentralDirectoryBlock.cs