Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / RequestBringIntoViewEventArgs.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PackageRelationshipSelector.cs
- OptimizerPatterns.cs
- StreamInfo.cs
- CalendarDateRange.cs
- SpotLight.cs
- SystemFonts.cs
- DrawingBrush.cs
- Helpers.cs
- FileUpload.cs
- ScalarOps.cs
- GeometryHitTestResult.cs
- XsdBuildProvider.cs
- ContextQuery.cs
- ValidationService.cs
- TemplateInstanceAttribute.cs
- Activity.cs
- OracleParameterCollection.cs
- Transform.cs
- TemplateBindingExpression.cs
- WebPartMenuStyle.cs
- NavigationPropertySingletonExpression.cs
- _LoggingObject.cs
- TabRenderer.cs
- StringResourceManager.cs
- RequestCacheValidator.cs
- CachedBitmap.cs
- Internal.cs
- StructuralCache.cs
- FixedSOMFixedBlock.cs
- StartUpEventArgs.cs
- BaseHashHelper.cs
- PrinterSettings.cs
- PatternMatcher.cs
- Evidence.cs
- DataTransferEventArgs.cs
- CounterSample.cs
- TextEditorMouse.cs
- VectorCollection.cs
- AutomationPeer.cs
- ComContractElementCollection.cs
- JsonSerializer.cs
- ProfilePropertyNameValidator.cs
- TypeElementCollection.cs
- PathFigureCollection.cs
- ObjectListSelectEventArgs.cs
- Timer.cs
- CodeMemberField.cs
- TypeHelpers.cs
- DataSetMappper.cs
- DetailsViewInsertedEventArgs.cs
- PerformanceCounterManager.cs
- _NTAuthentication.cs
- SchemaElementLookUpTable.cs
- GPStream.cs
- DeferrableContent.cs
- IOException.cs
- RectAnimationBase.cs
- PeerMaintainer.cs
- DataSourceXmlSubItemAttribute.cs
- PrinterResolution.cs
- TdsParser.cs
- ContentOperations.cs
- NotConverter.cs
- PropertyChangingEventArgs.cs
- CollectionBuilder.cs
- DayRenderEvent.cs
- BoolExpression.cs
- HtmlProps.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- XmlQuerySequence.cs
- Light.cs
- DesignerActionUIService.cs
- ArrayElementGridEntry.cs
- IndexedGlyphRun.cs
- remotingproxy.cs
- ExtendedPropertyDescriptor.cs
- UInt32Storage.cs
- OpenTypeLayoutCache.cs
- CatalogZoneBase.cs
- EnvelopedPkcs7.cs
- _DisconnectOverlappedAsyncResult.cs
- RegionIterator.cs
- MenuItem.cs
- ContextDataSourceContextData.cs
- SynthesizerStateChangedEventArgs.cs
- AlignmentYValidation.cs
- ColorBlend.cs
- DBCommandBuilder.cs
- WorkflowQueueInfo.cs
- CacheChildrenQuery.cs
- MemberRelationshipService.cs
- QuadraticBezierSegment.cs
- NamedPermissionSet.cs
- RunClient.cs
- WinFormsComponentEditor.cs
- TextModifierScope.cs
- HttpVersion.cs
- GregorianCalendarHelper.cs
- UserControlAutomationPeer.cs
- TableSectionStyle.cs