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
- SolidColorBrush.cs
- TextLine.cs
- Image.cs
- TableItemStyle.cs
- XpsColorContext.cs
- DataGridViewRowStateChangedEventArgs.cs
- Ipv6Element.cs
- MarginCollapsingState.cs
- ColumnMapProcessor.cs
- ObjectHelper.cs
- MultiDataTrigger.cs
- ProgressBar.cs
- MatcherBuilder.cs
- IItemProperties.cs
- CheckBoxPopupAdapter.cs
- AppModelKnownContentFactory.cs
- PerfCounters.cs
- DescendentsWalker.cs
- ByteKeyFrameCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- SByteStorage.cs
- BitHelper.cs
- ComboBox.cs
- MorphHelper.cs
- elementinformation.cs
- ThaiBuddhistCalendar.cs
- AccessViolationException.cs
- arabicshape.cs
- SqlCacheDependencyDatabase.cs
- ClrProviderManifest.cs
- PageDeviceFont.cs
- RepeaterItem.cs
- XmlBoundElement.cs
- EncodingDataItem.cs
- _NestedMultipleAsyncResult.cs
- Emitter.cs
- RadioButton.cs
- ApplicationDirectoryMembershipCondition.cs
- TabControlEvent.cs
- DispatcherProcessingDisabled.cs
- AsyncDataRequest.cs
- ControlValuePropertyAttribute.cs
- Soap.cs
- XpsDocumentEvent.cs
- XPathItem.cs
- HScrollProperties.cs
- DataGridViewRow.cs
- SystemResourceKey.cs
- ButtonColumn.cs
- JpegBitmapEncoder.cs
- XmlObjectSerializerWriteContextComplex.cs
- DiscreteKeyFrames.cs
- SQLString.cs
- FileAuthorizationModule.cs
- ListItem.cs
- DataControlField.cs
- EDesignUtil.cs
- DesignerOptionService.cs
- ServiceContractListItem.cs
- CultureTable.cs
- CopyAction.cs
- DataGridHyperlinkColumn.cs
- CodeNamespaceImport.cs
- EntityKey.cs
- ActionFrame.cs
- NetworkInformationException.cs
- ChangesetResponse.cs
- DataControlFieldCell.cs
- OdbcTransaction.cs
- EastAsianLunisolarCalendar.cs
- UdpRetransmissionSettings.cs
- URLString.cs
- TrackingMemoryStream.cs
- TemplateNameScope.cs
- ResourceExpressionBuilder.cs
- NamedPipeActivation.cs
- Propagator.JoinPropagator.cs
- ObjectSet.cs
- DataTableReader.cs
- WebReferencesBuildProvider.cs
- XmlTextReader.cs
- TypeBrowser.xaml.cs
- SourceElementsCollection.cs
- ExpanderAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- FileVersionInfo.cs
- OneOfTypeConst.cs
- Error.cs
- IPipelineRuntime.cs
- ObjectSpanRewriter.cs
- WebInvokeAttribute.cs
- FileUtil.cs
- StorageBasedPackageProperties.cs
- SmtpReplyReaderFactory.cs
- DockEditor.cs
- DoubleKeyFrameCollection.cs
- TableLayoutSettingsTypeConverter.cs
- LocalBuilder.cs
- Camera.cs
- EdmFunction.cs