Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataControlPagerLinkButton.cs
- QilLiteral.cs
- SimpleMailWebEventProvider.cs
- NominalTypeEliminator.cs
- UserValidatedEventArgs.cs
- XamlToRtfWriter.cs
- QueryCacheKey.cs
- GenericQueueSurrogate.cs
- RunInstallerAttribute.cs
- ObjectTag.cs
- RelationshipDetailsCollection.cs
- SoapProtocolReflector.cs
- LoginView.cs
- InstanceCompleteException.cs
- MailMessageEventArgs.cs
- XPathNodePointer.cs
- COM2TypeInfoProcessor.cs
- CompiledAction.cs
- Helper.cs
- BinaryEditor.cs
- FontStretch.cs
- PartitionResolver.cs
- BitStream.cs
- ProxyGenerationError.cs
- SatelliteContractVersionAttribute.cs
- WebPart.cs
- httpapplicationstate.cs
- ResourceKey.cs
- input.cs
- SqlDataSourceConfigureSortForm.cs
- PassportAuthentication.cs
- DataContractFormatAttribute.cs
- WebPartRestoreVerb.cs
- ResponseStream.cs
- pingexception.cs
- Optimizer.cs
- RsaSecurityKey.cs
- SerializerDescriptor.cs
- CheckableControlBaseAdapter.cs
- formatter.cs
- BuildManager.cs
- EventLogPermissionAttribute.cs
- SdlChannelSink.cs
- SQLByteStorage.cs
- SafeHandles.cs
- AuthorizationSection.cs
- RefExpr.cs
- CodeExpressionCollection.cs
- DataBoundControlAdapter.cs
- UriPrefixTable.cs
- SmiContext.cs
- InfoCardProofToken.cs
- _ListenerResponseStream.cs
- ProviderBase.cs
- MetadataArtifactLoaderCompositeResource.cs
- AttachInfo.cs
- KeyedPriorityQueue.cs
- SelectionProviderWrapper.cs
- FilteredSchemaElementLookUpTable.cs
- MaskInputRejectedEventArgs.cs
- ValueChangedEventManager.cs
- URI.cs
- PerformanceCounterLib.cs
- DashStyle.cs
- CustomTokenProvider.cs
- MemberListBinding.cs
- Win32Native.cs
- columnmapfactory.cs
- Expr.cs
- HttpEncoder.cs
- Compensation.cs
- Logging.cs
- QuaternionRotation3D.cs
- DebuggerAttributes.cs
- DbDataRecord.cs
- log.cs
- SHA256Managed.cs
- EventProviderWriter.cs
- AssemblyResourceLoader.cs
- ApplicationInfo.cs
- DATA_BLOB.cs
- DataGridParentRows.cs
- HostingPreferredMapPath.cs
- XPathDocument.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlSerializationReader.cs
- COM2FontConverter.cs
- FacetDescriptionElement.cs
- CallbackTimeoutsElement.cs
- TemplateComponentConnector.cs
- ExpressionBuilderCollection.cs
- NamedPermissionSet.cs
- DataGridViewTextBoxCell.cs
- ObjectDataSourceEventArgs.cs
- Config.cs
- OptimizerPatterns.cs
- documentsequencetextcontainer.cs
- AuthenticationModulesSection.cs
- Int32Converter.cs
- Image.cs