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
- PeerPresenceInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- AdornerLayer.cs
- OdbcConnectionFactory.cs
- ConfigXmlElement.cs
- GeneralTransform3DGroup.cs
- DataGridViewCellConverter.cs
- sqlinternaltransaction.cs
- CodeExporter.cs
- BaseConfigurationRecord.cs
- Point3D.cs
- TemplatedMailWebEventProvider.cs
- AggregatePushdown.cs
- SqlAliasesReferenced.cs
- MultipleViewPattern.cs
- XamlToRtfParser.cs
- MouseGestureValueSerializer.cs
- ColorAnimationBase.cs
- DbConnectionClosed.cs
- ApplicationException.cs
- EntityStoreSchemaFilterEntry.cs
- TreeViewImageKeyConverter.cs
- ArgIterator.cs
- OutOfProcStateClientManager.cs
- ToolStripPanel.cs
- CacheSection.cs
- PropertySourceInfo.cs
- XmlReturnReader.cs
- DocumentSchemaValidator.cs
- HostElement.cs
- TimeSpanParse.cs
- ClipboardProcessor.cs
- PointAnimationClockResource.cs
- DataObjectAttribute.cs
- SystemResources.cs
- FilterQuery.cs
- AutomationFocusChangedEventArgs.cs
- HwndSourceParameters.cs
- HttpModuleActionCollection.cs
- TableProviderWrapper.cs
- PlatformNotSupportedException.cs
- StackBuilderSink.cs
- Semaphore.cs
- OracleDataReader.cs
- PreviewKeyDownEventArgs.cs
- Section.cs
- ConfigUtil.cs
- PostBackOptions.cs
- LinqDataSourceHelper.cs
- ResourceDefaultValueAttribute.cs
- FontInfo.cs
- XmlEntityReference.cs
- ConfigurationValidatorBase.cs
- TypographyProperties.cs
- FileInfo.cs
- CodeMemberMethod.cs
- CommandDevice.cs
- CharacterBufferReference.cs
- QilStrConcat.cs
- Propagator.cs
- BrushValueSerializer.cs
- ValidationSummary.cs
- DataTableReader.cs
- RepeaterItemCollection.cs
- BuildTopDownAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- StackOverflowException.cs
- DateTimeFormat.cs
- WindowsSolidBrush.cs
- ModuleElement.cs
- PenContexts.cs
- WebPartConnectionCollection.cs
- ListParaClient.cs
- Parser.cs
- SharedDp.cs
- ParameterCollection.cs
- ValueCollectionParameterReader.cs
- RichTextBoxConstants.cs
- MetafileHeaderWmf.cs
- FixedFlowMap.cs
- StringUtil.cs
- SqlException.cs
- WebColorConverter.cs
- WindowsGraphics.cs
- HTTPNotFoundHandler.cs
- BrowserCapabilitiesFactory.cs
- QuaternionValueSerializer.cs
- PageTextBox.cs
- WindowsStreamSecurityBindingElement.cs
- Code.cs
- Win32SafeHandles.cs
- ExceptionUtil.cs
- SharedUtils.cs
- MobileListItemCollection.cs
- ImageClickEventArgs.cs
- DirectoryNotFoundException.cs
- ConfigsHelper.cs
- EntryIndex.cs
- WMIGenerator.cs
- ProtectedProviderSettings.cs