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
- TraceUtility.cs
- TabControl.cs
- PageVisual.cs
- FontWeight.cs
- HashHelpers.cs
- SubclassTypeValidator.cs
- ReferentialConstraint.cs
- State.cs
- GridViewColumnCollection.cs
- HotSpot.cs
- FutureFactory.cs
- PenThreadWorker.cs
- SessionParameter.cs
- DataGridViewCellCancelEventArgs.cs
- ManagedCodeMarkers.cs
- StrokeCollection2.cs
- Identifier.cs
- HyperLinkStyle.cs
- ContainerControl.cs
- x509utils.cs
- HttpPostedFile.cs
- InputDevice.cs
- WebHostUnsafeNativeMethods.cs
- Shape.cs
- DataColumnPropertyDescriptor.cs
- LayoutInformation.cs
- EndOfStreamException.cs
- MergeFilterQuery.cs
- MulticastDelegate.cs
- ScrollEvent.cs
- EncodingNLS.cs
- ErrorFormatterPage.cs
- _Events.cs
- WebPartDesigner.cs
- ExpressionBuilder.cs
- ProviderManager.cs
- OdbcDataReader.cs
- StyleTypedPropertyAttribute.cs
- SeparatorAutomationPeer.cs
- XmlExpressionDumper.cs
- EventHandlerList.cs
- Activity.cs
- ActivityMarkupSerializer.cs
- TCPClient.cs
- CreateInstanceBinder.cs
- XPathAncestorQuery.cs
- Rect3D.cs
- XPathSingletonIterator.cs
- AutomationProperty.cs
- DataGridHeaderBorder.cs
- AccessDataSourceView.cs
- SoapProtocolImporter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SineEase.cs
- DataGridTableCollection.cs
- ResourceDefaultValueAttribute.cs
- FieldDescriptor.cs
- webeventbuffer.cs
- SizeF.cs
- ReferencedCollectionType.cs
- ContractDescription.cs
- StylusLogic.cs
- ScriptControlManager.cs
- ICspAsymmetricAlgorithm.cs
- HttpGetClientProtocol.cs
- ClientOptions.cs
- NullRuntimeConfig.cs
- FrameworkElementFactory.cs
- xsdvalidator.cs
- HostingMessageProperty.cs
- ConfigViewGenerator.cs
- ResXResourceWriter.cs
- TransformGroup.cs
- Exceptions.cs
- Page.cs
- ActiveDocumentEvent.cs
- SymmetricAlgorithm.cs
- precedingsibling.cs
- CompiledRegexRunner.cs
- ObjectSecurity.cs
- CustomWebEventKey.cs
- TextChangedEventArgs.cs
- MoveSizeWinEventHandler.cs
- Track.cs
- HwndMouseInputProvider.cs
- AbandonedMutexException.cs
- DataListItem.cs
- DbDeleteCommandTree.cs
- TabControl.cs
- ByteStream.cs
- WindowsToolbar.cs
- Glyph.cs
- PageContentCollection.cs
- ServiceModelSecurityTokenTypes.cs
- ImageFormat.cs
- SetStateEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- SelectionEditingBehavior.cs
- HtmlElementEventArgs.cs
- ResourceSet.cs