Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / RequestBringIntoViewEventArgs.cs / 1305600 / 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
- OleDbException.cs
- Int64.cs
- WhitespaceReader.cs
- ResponseStream.cs
- OleTxTransactionInfo.cs
- PackageProperties.cs
- TableChangeProcessor.cs
- XmlCharCheckingReader.cs
- EntryWrittenEventArgs.cs
- SharedHttpsTransportManager.cs
- CompilerResults.cs
- ProfilePropertySettings.cs
- ApplicationId.cs
- AutomationProperties.cs
- ReadWriteSpinLock.cs
- ViewValidator.cs
- SHA1.cs
- XmlIlGenerator.cs
- SharedUtils.cs
- Attributes.cs
- InstanceContext.cs
- DataStreams.cs
- ControlBuilder.cs
- FileDetails.cs
- UnsafeNativeMethods.cs
- XPathDocument.cs
- Base64Stream.cs
- HttpListenerContext.cs
- SatelliteContractVersionAttribute.cs
- FontNamesConverter.cs
- CheckPair.cs
- NavigationService.cs
- CodeMethodReturnStatement.cs
- XhtmlMobileTextWriter.cs
- LambdaCompiler.Logical.cs
- LinkTarget.cs
- streamingZipPartStream.cs
- Crc32.cs
- PathSegment.cs
- AsyncOperationContext.cs
- AuthenticationModuleElement.cs
- SystemUnicastIPAddressInformation.cs
- DWriteFactory.cs
- WebPartEditorApplyVerb.cs
- AssemblyBuilder.cs
- ToolStripItemRenderEventArgs.cs
- PointLight.cs
- MD5CryptoServiceProvider.cs
- UIElementAutomationPeer.cs
- NumericPagerField.cs
- DbProviderFactory.cs
- ObfuscateAssemblyAttribute.cs
- ContentElementCollection.cs
- ModelUIElement3D.cs
- ErrorWrapper.cs
- TypeDescriptorFilterService.cs
- RSACryptoServiceProvider.cs
- ResponseBodyWriter.cs
- RealizationDrawingContextWalker.cs
- PackUriHelper.cs
- MetadataSerializer.cs
- TextBox.cs
- ScriptReferenceEventArgs.cs
- _SpnDictionary.cs
- AdornedElementPlaceholder.cs
- EncodingInfo.cs
- HtmlInputCheckBox.cs
- XPathScanner.cs
- QualifiedId.cs
- HttpListenerResponse.cs
- adornercollection.cs
- _DynamicWinsockMethods.cs
- ExpressionQuoter.cs
- SingleAnimation.cs
- XmlNode.cs
- Vector3dCollection.cs
- ClaimTypeElementCollection.cs
- UserPreferenceChangingEventArgs.cs
- PrinterSettings.cs
- FrameDimension.cs
- DataContractSerializerSection.cs
- ExportOptions.cs
- AttributeProviderAttribute.cs
- HtmlTernaryTree.cs
- StateMachineWorkflowDesigner.cs
- XPathNodeIterator.cs
- WpfKnownMember.cs
- ToolboxItemCollection.cs
- InputManager.cs
- Context.cs
- SoapTypeAttribute.cs
- MILUtilities.cs
- OutputScope.cs
- SmiSettersStream.cs
- IERequestCache.cs
- CellConstantDomain.cs
- RsaKeyIdentifierClause.cs
- SR.cs
- GenericTypeParameterBuilder.cs
- GridViewColumn.cs