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
- ConvertEvent.cs
- XmlSchemaSimpleContentExtension.cs
- ApplicationManager.cs
- FileInfo.cs
- OleDbPermission.cs
- ObjectComplexPropertyMapping.cs
- ServiceModelConfigurationSectionCollection.cs
- TraceLevelStore.cs
- AdPostCacheSubstitution.cs
- AttributeCollection.cs
- HtmlHead.cs
- SiteMapProvider.cs
- OwnerDrawPropertyBag.cs
- ScalarConstant.cs
- RelationshipEnd.cs
- TransformProviderWrapper.cs
- PropertyInfoSet.cs
- Int16KeyFrameCollection.cs
- ProcessHost.cs
- SymDocumentType.cs
- Validator.cs
- JumpList.cs
- AudioStateChangedEventArgs.cs
- ExpressionBuilderCollection.cs
- XmlAnyElementAttribute.cs
- FusionWrap.cs
- UserMapPath.cs
- MethodCallTranslator.cs
- SqlWebEventProvider.cs
- MultiSelectRootGridEntry.cs
- HttpBrowserCapabilitiesBase.cs
- PathGeometry.cs
- StandardCommands.cs
- DataSetMappper.cs
- DoubleLinkList.cs
- WindowsFormsHostAutomationPeer.cs
- rsa.cs
- QueryStringParameter.cs
- Column.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MissingMemberException.cs
- ImageMetadata.cs
- TableDetailsRow.cs
- XmlSchemaProviderAttribute.cs
- SoapFault.cs
- SafeArrayTypeMismatchException.cs
- TreeNodeClickEventArgs.cs
- WebPartsPersonalization.cs
- DependencyPropertyHelper.cs
- TextStore.cs
- StylusPointCollection.cs
- CapabilitiesAssignment.cs
- OutKeywords.cs
- Paragraph.cs
- RuleElement.cs
- DataMemberFieldConverter.cs
- RemoteWebConfigurationHostStream.cs
- ClaimTypes.cs
- DataSourceIDConverter.cs
- JulianCalendar.cs
- TaskScheduler.cs
- EventArgs.cs
- AssemblyBuilder.cs
- NameValuePermission.cs
- SpecialNameAttribute.cs
- IgnorePropertiesAttribute.cs
- StringReader.cs
- Attribute.cs
- DependsOnAttribute.cs
- UnsafeNativeMethods.cs
- HandledEventArgs.cs
- TrustLevel.cs
- GridViewCommandEventArgs.cs
- ProtocolImporter.cs
- VectorCollectionConverter.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- EntityDesignerBuildProvider.cs
- CodeFieldReferenceExpression.cs
- IChannel.cs
- DefaultAsyncDataDispatcher.cs
- Rotation3DAnimationBase.cs
- SafeNativeMemoryHandle.cs
- BitmapCacheBrush.cs
- CommandConverter.cs
- OdbcCommand.cs
- CodeCatchClause.cs
- DataGridAddNewRow.cs
- TraceSection.cs
- WindowsMenu.cs
- CssClassPropertyAttribute.cs
- UrlParameterReader.cs
- AsyncResult.cs
- UIElementParagraph.cs
- CodeCompileUnit.cs
- ElementMarkupObject.cs
- PersonalizableAttribute.cs
- RegexBoyerMoore.cs
- TargetParameterCountException.cs
- FixUp.cs
- TextTrailingCharacterEllipsis.cs