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
- RelationshipEnd.cs
- ImportCatalogPart.cs
- TriggerActionCollection.cs
- _SSPISessionCache.cs
- XmlSchemaProviderAttribute.cs
- BitVector32.cs
- webclient.cs
- AssemblyResourceLoader.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ValidatorCompatibilityHelper.cs
- TrackingMemoryStreamFactory.cs
- TableLayoutStyleCollection.cs
- FlowDocumentView.cs
- SemanticBasicElement.cs
- Panel.cs
- FixedSOMContainer.cs
- ResetableIterator.cs
- ConstructorArgumentAttribute.cs
- ToolStripSeparatorRenderEventArgs.cs
- QueryableFilterRepeater.cs
- MultitargetingHelpers.cs
- ParameterReplacerVisitor.cs
- XamlTypeMapper.cs
- DrawingContextWalker.cs
- QueryOperationResponseOfT.cs
- Soap12ProtocolImporter.cs
- PeerInvitationResponse.cs
- _BufferOffsetSize.cs
- PasswordRecovery.cs
- SqlRecordBuffer.cs
- HashAlgorithm.cs
- DispatcherExceptionFilterEventArgs.cs
- UnsafeNativeMethods.cs
- SafeEventLogReadHandle.cs
- DrawingContextDrawingContextWalker.cs
- CompiledIdentityConstraint.cs
- KnownAssembliesSet.cs
- BitmapMetadata.cs
- WindowsIPAddress.cs
- Point3DAnimationUsingKeyFrames.cs
- DataBoundControl.cs
- PersonalizableAttribute.cs
- SoundPlayerAction.cs
- DataGridViewColumn.cs
- CryptoProvider.cs
- MultipleViewPattern.cs
- WarningException.cs
- Figure.cs
- Int32RectConverter.cs
- SecurityDocument.cs
- ParameterCollection.cs
- CheckBoxFlatAdapter.cs
- SqlDataSourceQueryEditorForm.cs
- IDReferencePropertyAttribute.cs
- ActivityCodeDomSerializationManager.cs
- ViewStateModeByIdAttribute.cs
- WsdlInspector.cs
- ArrayMergeHelper.cs
- InlineUIContainer.cs
- WindowsButton.cs
- ResourceSet.cs
- UrlPath.cs
- MethodCallTranslator.cs
- ScrollItemPattern.cs
- IntellisenseTextBox.designer.cs
- ToolBarOverflowPanel.cs
- FileSystemWatcher.cs
- QuaternionAnimation.cs
- ComPlusTraceRecord.cs
- PipelineModuleStepContainer.cs
- RadioButtonList.cs
- sqlmetadatafactory.cs
- MailWebEventProvider.cs
- TcpServerChannel.cs
- DependencyPropertyAttribute.cs
- DEREncoding.cs
- DataTablePropertyDescriptor.cs
- UInt32.cs
- ChannelDemuxer.cs
- TouchesCapturedWithinProperty.cs
- ButtonStandardAdapter.cs
- FragmentQueryProcessor.cs
- VisualBasicSettingsHandler.cs
- BlurBitmapEffect.cs
- ConstNode.cs
- RegexCompilationInfo.cs
- CaseInsensitiveComparer.cs
- OrderedEnumerableRowCollection.cs
- ReadOnlyDataSourceView.cs
- Vector3D.cs
- UserControl.cs
- StreamSecurityUpgradeAcceptorBase.cs
- TagNameToTypeMapper.cs
- ScriptingProfileServiceSection.cs
- FastEncoderWindow.cs
- DataGridLinkButton.cs
- RegionInfo.cs
- HwndSourceParameters.cs
- WindowsRebar.cs
- TextClipboardData.cs