Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RoutedEventHandlerInfo.cs
- StreamGeometryContext.cs
- Journaling.cs
- _NegoState.cs
- InkCollectionBehavior.cs
- HashRepartitionEnumerator.cs
- CommandBindingCollection.cs
- DrawingImage.cs
- SQLSingle.cs
- OrthographicCamera.cs
- XmlSchemaCompilationSettings.cs
- LogicalMethodInfo.cs
- RowParagraph.cs
- SID.cs
- ObjectDataSourceEventArgs.cs
- GridViewDeletedEventArgs.cs
- CodeGen.cs
- ResponseStream.cs
- TemplateBindingExtension.cs
- DataControlButton.cs
- DBSqlParser.cs
- Activity.cs
- UntrustedRecipientException.cs
- ActivityStatusChangeEventArgs.cs
- HttpWriter.cs
- LinkLabelLinkClickedEvent.cs
- NegotiationTokenAuthenticatorState.cs
- SuppressedPackageProperties.cs
- ApplicationDirectory.cs
- MobileControlsSectionHelper.cs
- HostedTcpTransportManager.cs
- SSmlParser.cs
- VectorCollection.cs
- XmlMtomWriter.cs
- Pens.cs
- _NativeSSPI.cs
- CompoundFileStorageReference.cs
- RangeBase.cs
- RtfControlWordInfo.cs
- ViewEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- SelectionRangeConverter.cs
- WebPartEditorOkVerb.cs
- SizeAnimationClockResource.cs
- TypeSystem.cs
- Application.cs
- FileDataSourceCache.cs
- DataContext.cs
- FtpRequestCacheValidator.cs
- ContentDesigner.cs
- ValidationPropertyAttribute.cs
- Evaluator.cs
- SqlIdentifier.cs
- LocatorBase.cs
- Pkcs7Signer.cs
- HtmlElementEventArgs.cs
- ContainerVisual.cs
- ObjectTag.cs
- SettingsPropertyCollection.cs
- TextViewElement.cs
- ArgIterator.cs
- ImageAttributes.cs
- ProxyAssemblyNotLoadedException.cs
- XmlImplementation.cs
- DiscreteKeyFrames.cs
- PolyQuadraticBezierSegment.cs
- Message.cs
- XmlReflectionImporter.cs
- MenuStrip.cs
- StringFreezingAttribute.cs
- EntityReference.cs
- ProcessHost.cs
- DataTablePropertyDescriptor.cs
- GroupJoinQueryOperator.cs
- CompensableActivity.cs
- SqlDataSourceStatusEventArgs.cs
- BookmarkManager.cs
- ArcSegment.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CalendarData.cs
- StringFunctions.cs
- ProcessInfo.cs
- DataStreams.cs
- NativeMethods.cs
- Drawing.cs
- DashStyles.cs
- IRCollection.cs
- SoapEnumAttribute.cs
- BitSet.cs
- CircleHotSpot.cs
- CompressEmulationStream.cs
- SendSecurityHeaderElementContainer.cs
- DataGridViewDataErrorEventArgs.cs
- FocusTracker.cs
- Quaternion.cs
- Scanner.cs
- PageCatalogPart.cs
- InvalidTimeZoneException.cs
- VisualBasicSettingsHandler.cs
- SchemaImporter.cs