Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Primitives / ScrollEventArgs.cs / 1 / ScrollEventArgs.cs
using System; using System.Windows.Controls; using System.Windows; namespace System.Windows.Controls.Primitives { ////// Occurs when the Value property has changed, either by a Scroll event or programmatically. /// ////// public class ScrollEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the ScrollEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public ScrollEventArgs(ScrollEventType scrollEventType, double newValue) : base() { _scrollEventType = scrollEventType; _newValue = newValue; RoutedEvent =ScrollBar.ScrollEvent; } ////// Read-only access to the type of scroll event. /// public ScrollEventType ScrollEventType { get { return _scrollEventType; } } ////// Read-only access to new value of ScrollBar. /// public double NewValue { get { return _newValue; } } ////// This method is used to perform the proper type casting in order to /// call the type-safe ScrollEventHandler delegate for the ScrollEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { ScrollEventHandler handler = (ScrollEventHandler)genericHandler; handler(genericTarget, this); } private ScrollEventType _scrollEventType; private double _newValue; } /// /// This delegate must used by handlers of the Scroll event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void ScrollEventHandler(object sender, ScrollEventArgs e); } // 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
- CFGGrammar.cs
- ResourcePermissionBase.cs
- HostProtectionException.cs
- SplitterPanel.cs
- DataTableCollection.cs
- InternalPermissions.cs
- SoapExtensionTypeElement.cs
- ConstraintManager.cs
- ControlType.cs
- NotFiniteNumberException.cs
- PartialCachingAttribute.cs
- DBParameter.cs
- CodeCommentStatementCollection.cs
- FastEncoderStatics.cs
- FormViewUpdateEventArgs.cs
- Transactions.cs
- TimeSpanValidator.cs
- XmlBinaryReader.cs
- ServerIdentity.cs
- WindowsToolbarItemAsMenuItem.cs
- SourceItem.cs
- TextFormatterContext.cs
- TabletDevice.cs
- Span.cs
- Point3DKeyFrameCollection.cs
- CanExecuteRoutedEventArgs.cs
- EventsTab.cs
- ZipIOLocalFileHeader.cs
- ObfuscationAttribute.cs
- LogStream.cs
- FormClosingEvent.cs
- ValidatedControlConverter.cs
- ThreadStartException.cs
- XmlSchemaImport.cs
- HttpRequest.cs
- TextParaClient.cs
- CallbackWrapper.cs
- XsdCachingReader.cs
- KeyConstraint.cs
- DependencyPropertyAttribute.cs
- DbConnectionPoolCounters.cs
- adornercollection.cs
- FileDocument.cs
- ManipulationInertiaStartingEventArgs.cs
- COM2EnumConverter.cs
- Pool.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DragEventArgs.cs
- ColorAnimation.cs
- ReferentialConstraint.cs
- TCEAdapterGenerator.cs
- TdsParserStateObject.cs
- DmlSqlGenerator.cs
- GeneralEndpointIdentity.cs
- IndicCharClassifier.cs
- CodeTypeConstructor.cs
- DesignTableCollection.cs
- SectionXmlInfo.cs
- Point3DAnimation.cs
- JoinElimination.cs
- WindowVisualStateTracker.cs
- TraceSection.cs
- BrushConverter.cs
- Pts.cs
- OdbcStatementHandle.cs
- BamlRecordHelper.cs
- LogConverter.cs
- SelectionProcessor.cs
- DrawToolTipEventArgs.cs
- ForwardPositionQuery.cs
- TextAnchor.cs
- coordinatorscratchpad.cs
- ColumnMapProcessor.cs
- TTSEngineProxy.cs
- OutOfMemoryException.cs
- FileIOPermission.cs
- Table.cs
- DataContractJsonSerializerOperationFormatter.cs
- ComboBox.cs
- ADMembershipUser.cs
- HelpKeywordAttribute.cs
- OdbcReferenceCollection.cs
- ContentFilePart.cs
- DockPatternIdentifiers.cs
- SSmlParser.cs
- CultureInfoConverter.cs
- GatewayDefinition.cs
- EventMappingSettingsCollection.cs
- DurableMessageDispatchInspector.cs
- CodeFieldReferenceExpression.cs
- SingleConverter.cs
- XmlParserContext.cs
- ScalarConstant.cs
- ObjectDataSourceFilteringEventArgs.cs
- CompleteWizardStep.cs
- FrugalMap.cs
- DataServiceClientException.cs
- ClientScriptManager.cs
- DBDataPermissionAttribute.cs
- HtmlEncodedRawTextWriter.cs