Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / RequestBringIntoViewEventArgs.cs / 1 / RequestBringIntoViewEventArgs.cs
using System; namespace System.Windows { ////// The BringIntoViewEventArgs class is used by BringIntoViewEventHandler. /// public class RequestBringIntoViewEventArgs : RoutedEventArgs { ///Initializes a new instance of the BringIntoViewEventArgs class. internal RequestBringIntoViewEventArgs(DependencyObject target, Rect targetRect) { _target = target; _rcTarget = targetRect; } ////// The object to make visible. /// public DependencyObject TargetObject { get { return _target; } } ////// The rectangular region in the object's coordinate space which should be made visible. /// public Rect TargetRect { get { return _rcTarget; } } ////// 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) { RequestBringIntoViewEventHandler handler = (RequestBringIntoViewEventHandler)genericHandler; handler(genericTarget, this); } private DependencyObject _target; // The object to Bring Into View private Rect _rcTarget; // Rectange in the object's coordinate space to bring into view. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows { /// /// The BringIntoViewEventArgs class is used by BringIntoViewEventHandler. /// public class RequestBringIntoViewEventArgs : RoutedEventArgs { ///Initializes a new instance of the BringIntoViewEventArgs class. internal RequestBringIntoViewEventArgs(DependencyObject target, Rect targetRect) { _target = target; _rcTarget = targetRect; } ////// The object to make visible. /// public DependencyObject TargetObject { get { return _target; } } ////// The rectangular region in the object's coordinate space which should be made visible. /// public Rect TargetRect { get { return _rcTarget; } } ////// 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) { RequestBringIntoViewEventHandler handler = (RequestBringIntoViewEventHandler)genericHandler; handler(genericTarget, this); } private DependencyObject _target; // The object to Bring Into View private Rect _rcTarget; // Rectange in the object's coordinate space to bring into view. } } // 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
- Ref.cs
- BinaryUtilClasses.cs
- DefaultValueAttribute.cs
- HttpBrowserCapabilitiesWrapper.cs
- SchemaNamespaceManager.cs
- DrawTreeNodeEventArgs.cs
- BindingContext.cs
- PolyBezierSegmentFigureLogic.cs
- CodeConstructor.cs
- ImageEditor.cs
- ParseChildrenAsPropertiesAttribute.cs
- AxisAngleRotation3D.cs
- NextPreviousPagerField.cs
- BaseProcessor.cs
- DataControlLinkButton.cs
- ActivityDesignerHighlighter.cs
- FamilyCollection.cs
- ListViewHitTestInfo.cs
- HashLookup.cs
- SmiContextFactory.cs
- RequestQueue.cs
- TextRenderingModeValidation.cs
- SinglePageViewer.cs
- AnnotationResource.cs
- ChannelServices.cs
- ToolStripDropDownItem.cs
- XmlCharacterData.cs
- LinqDataView.cs
- MethodBuilder.cs
- Brushes.cs
- EntitySqlQueryBuilder.cs
- XPathPatternParser.cs
- XmlSchemaSimpleContentExtension.cs
- XmlTypeMapping.cs
- SizeChangedEventArgs.cs
- relpropertyhelper.cs
- DataSourceComponent.cs
- RuleAttributes.cs
- ExpressionBuilderContext.cs
- PathNode.cs
- MulticastNotSupportedException.cs
- WindowVisualStateTracker.cs
- RegisteredScript.cs
- ArgumentsParser.cs
- TextSearch.cs
- JulianCalendar.cs
- EasingFunctionBase.cs
- PeerNameResolver.cs
- Substitution.cs
- FigureParaClient.cs
- TypographyProperties.cs
- TypedReference.cs
- MenuEventArgs.cs
- AudienceUriMode.cs
- ProcessProtocolHandler.cs
- _UriTypeConverter.cs
- Property.cs
- DataServiceQueryOfT.cs
- OutputCacheEntry.cs
- RelatedEnd.cs
- Empty.cs
- TraceHandler.cs
- KeyPressEvent.cs
- DeploymentSection.cs
- OleDbParameter.cs
- XPathEmptyIterator.cs
- SQLMembershipProvider.cs
- ISAPIApplicationHost.cs
- Int32Collection.cs
- CheckPair.cs
- SystemUdpStatistics.cs
- WebReferenceOptions.cs
- XpsPackagingException.cs
- InputLanguageProfileNotifySink.cs
- DSASignatureFormatter.cs
- DuplicateWaitObjectException.cs
- QueryCacheManager.cs
- ZoneLinkButton.cs
- AppearanceEditorPart.cs
- GridItem.cs
- ScalarConstant.cs
- BindingBase.cs
- PrinterSettings.cs
- OleDbErrorCollection.cs
- SpnegoTokenProvider.cs
- EncoderFallback.cs
- HScrollProperties.cs
- WebBrowserNavigatedEventHandler.cs
- SemanticResultValue.cs
- XmlAnyElementAttributes.cs
- WebPartDisplayMode.cs
- XmlSubtreeReader.cs
- NameNode.cs
- GlyphTypeface.cs
- SafeEventLogWriteHandle.cs
- CharacterHit.cs
- StaticFileHandler.cs
- ResourceDictionary.cs
- ListSortDescription.cs
- XmlAtomicValue.cs