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
- InplaceBitmapMetadataWriter.cs
- SimpleModelProvider.cs
- ParameterCollection.cs
- WebBrowserBase.cs
- Control.cs
- VBCodeProvider.cs
- Figure.cs
- EasingFunctionBase.cs
- KeyValuePair.cs
- SynchronizationLockException.cs
- StaticExtension.cs
- UIInitializationException.cs
- SqlLiftIndependentRowExpressions.cs
- ParameterSubsegment.cs
- ObjectSet.cs
- DrawingState.cs
- ADRoleFactoryConfiguration.cs
- WebHttpDispatchOperationSelectorData.cs
- Attributes.cs
- TextPattern.cs
- ParserStreamGeometryContext.cs
- Char.cs
- SetterBase.cs
- Substitution.cs
- CodeAssignStatement.cs
- JournalEntryStack.cs
- HitTestParameters3D.cs
- LineInfo.cs
- XmlSerializerFactory.cs
- EmptyCollection.cs
- MatrixAnimationUsingPath.cs
- SizeValueSerializer.cs
- XomlSerializationHelpers.cs
- XmlnsPrefixAttribute.cs
- SoapMessage.cs
- _PooledStream.cs
- Symbol.cs
- IsolatedStorage.cs
- ScopelessEnumAttribute.cs
- AutomationEventArgs.cs
- AssemblyAttributesGoHere.cs
- ObjectPropertyMapping.cs
- BaseDataListComponentEditor.cs
- SecurityDescriptor.cs
- GeneralTransform.cs
- ConfigXmlComment.cs
- figurelengthconverter.cs
- XmlMapping.cs
- CompressionTransform.cs
- HtmlTextArea.cs
- XmlSchemaImporter.cs
- XsltLibrary.cs
- PropertyToken.cs
- LoginCancelEventArgs.cs
- XmlIncludeAttribute.cs
- SocketCache.cs
- ACL.cs
- TextEditorDragDrop.cs
- GcHandle.cs
- VideoDrawing.cs
- SqlXml.cs
- cookiecollection.cs
- Polygon.cs
- OracleParameterCollection.cs
- OpenFileDialog.cs
- StorageRoot.cs
- XmlCustomFormatter.cs
- DbDataAdapter.cs
- ListenerConnectionModeReader.cs
- CategoryState.cs
- QueryInterceptorAttribute.cs
- Point3DKeyFrameCollection.cs
- BitmapCache.cs
- ExtensionDataObject.cs
- SplashScreenNativeMethods.cs
- CompModSwitches.cs
- SpecialNameAttribute.cs
- ImplicitInputBrush.cs
- ObjectIDGenerator.cs
- LineGeometry.cs
- DropShadowBitmapEffect.cs
- LayoutExceptionEventArgs.cs
- NativeWrapper.cs
- DictionaryManager.cs
- NativeMethods.cs
- SQLDecimal.cs
- StrongTypingException.cs
- NetCodeGroup.cs
- AlternateViewCollection.cs
- TrackingLocationCollection.cs
- ParameterDataSourceExpression.cs
- FacetValues.cs
- xml.cs
- DrawingAttributesDefaultValueFactory.cs
- HScrollBar.cs
- CultureInfoConverter.cs
- MenuItem.cs
- CodeCatchClause.cs
- VisualStyleRenderer.cs
- ChannelPool.cs