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
- BindingExpressionBase.cs
- JournalEntryStack.cs
- HwndKeyboardInputProvider.cs
- SafeFileMapViewHandle.cs
- RecordManager.cs
- activationcontext.cs
- GridToolTip.cs
- XmlName.cs
- LogPolicy.cs
- InvokeBinder.cs
- PolyBezierSegment.cs
- ColumnMapVisitor.cs
- CodeAttributeDeclarationCollection.cs
- documentsequencetextcontainer.cs
- MediaTimeline.cs
- RequestStatusBarUpdateEventArgs.cs
- ExtensionFile.cs
- LinearGradientBrush.cs
- Debug.cs
- DataGridView.cs
- HideDisabledControlAdapter.cs
- AuthenticatedStream.cs
- KeyboardDevice.cs
- SafeNativeMethods.cs
- Internal.cs
- NotifyParentPropertyAttribute.cs
- ElementNotAvailableException.cs
- UnknownWrapper.cs
- CodeSubDirectory.cs
- InvalidOperationException.cs
- ListViewInsertEventArgs.cs
- StringResourceManager.cs
- QilList.cs
- UxThemeWrapper.cs
- WebServiceTypeData.cs
- HttpBufferlessInputStream.cs
- KeyPullup.cs
- ToolStripPanelCell.cs
- _LocalDataStore.cs
- StrokeNodeEnumerator.cs
- CornerRadius.cs
- GestureRecognizer.cs
- Grid.cs
- WebServiceErrorEvent.cs
- ColumnReorderedEventArgs.cs
- ReliabilityContractAttribute.cs
- ConversionContext.cs
- MouseButtonEventArgs.cs
- DesignerOptionService.cs
- AnimatedTypeHelpers.cs
- ObjectAnimationBase.cs
- GridViewCommandEventArgs.cs
- Vector3dCollection.cs
- TimeSpanOrInfiniteConverter.cs
- CodeBlockBuilder.cs
- EastAsianLunisolarCalendar.cs
- NameValuePermission.cs
- SqlNodeAnnotations.cs
- Content.cs
- SwitchLevelAttribute.cs
- WebHttpBinding.cs
- AddInToken.cs
- FormViewCommandEventArgs.cs
- UIElementHelper.cs
- WebPartsPersonalizationAuthorization.cs
- MessagePartSpecification.cs
- StrokeCollection.cs
- Html32TextWriter.cs
- ISAPIApplicationHost.cs
- MessagePartProtectionMode.cs
- ToolStripContentPanel.cs
- FontSource.cs
- Sql8ExpressionRewriter.cs
- documentsequencetextcontainer.cs
- DesignTimeParseData.cs
- ParserStreamGeometryContext.cs
- XmlIncludeAttribute.cs
- LambdaSerializationException.cs
- WebServiceFaultDesigner.cs
- ThumbAutomationPeer.cs
- DataGridViewCellValueEventArgs.cs
- EmbeddedMailObject.cs
- GiveFeedbackEventArgs.cs
- KeyPullup.cs
- PropertyEntry.cs
- StrokeIntersection.cs
- PropertyIDSet.cs
- EndPoint.cs
- lengthconverter.cs
- ValidatedControlConverter.cs
- TextEditorDragDrop.cs
- SiteMapNodeItemEventArgs.cs
- SchemaCreator.cs
- PageRequestManager.cs
- DispatcherTimer.cs
- ParentQuery.cs
- SchemaReference.cs
- KeyProperty.cs
- System.Data_BID.cs
- PermissionSet.cs