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
- KernelTypeValidation.cs
- SymmetricAlgorithm.cs
- ScriptReferenceEventArgs.cs
- UpnEndpointIdentityExtension.cs
- SqlStream.cs
- OrderByLifter.cs
- _ServiceNameStore.cs
- SecurityException.cs
- NavigationPropertyAccessor.cs
- EventPrivateKey.cs
- XmlSerializerFactory.cs
- tooltip.cs
- KerberosSecurityTokenProvider.cs
- BaseTreeIterator.cs
- RequestChannel.cs
- ExtentKey.cs
- ColorTranslator.cs
- OleDbMetaDataFactory.cs
- SHA512CryptoServiceProvider.cs
- UserControlBuildProvider.cs
- Accessible.cs
- MsmqAppDomainProtocolHandler.cs
- NullableFloatMinMaxAggregationOperator.cs
- ConnectionPointCookie.cs
- WindowsListViewGroupHelper.cs
- WindowShowOrOpenTracker.cs
- SharingService.cs
- SqlComparer.cs
- NoResizeSelectionBorderGlyph.cs
- MouseCaptureWithinProperty.cs
- BamlLocalizationDictionary.cs
- TransformerConfigurationWizardBase.cs
- SmtpException.cs
- Visual3D.cs
- Variant.cs
- XpsS0ValidatingLoader.cs
- WebServiceHandlerFactory.cs
- GridViewPageEventArgs.cs
- ManagementObjectSearcher.cs
- DummyDataSource.cs
- DataGridPagingPage.cs
- RowBinding.cs
- WebConfigurationManager.cs
- TcpClientCredentialType.cs
- Int16.cs
- DataReceivedEventArgs.cs
- FileDialogPermission.cs
- DataGridLinkButton.cs
- SafeNativeMethods.cs
- XPathScanner.cs
- WebConfigurationHostFileChange.cs
- TextParagraphProperties.cs
- securitycriticaldataClass.cs
- GZipDecoder.cs
- Stylesheet.cs
- SkinBuilder.cs
- DrawTreeNodeEventArgs.cs
- Preprocessor.cs
- UIElement3D.cs
- CodeDirectoryCompiler.cs
- ParallelRangeManager.cs
- MouseGesture.cs
- DownloadProgressEventArgs.cs
- COM2TypeInfoProcessor.cs
- MimeTypePropertyAttribute.cs
- ToolstripProfessionalRenderer.cs
- ChannelManager.cs
- PopOutPanel.cs
- AesManaged.cs
- EntityClientCacheKey.cs
- Environment.cs
- HandlerFactoryCache.cs
- DataExpression.cs
- ObjectListFieldCollection.cs
- DesignerActionItem.cs
- IPGlobalProperties.cs
- SymbolType.cs
- StringCollectionMarkupSerializer.cs
- COM2ColorConverter.cs
- AstTree.cs
- WebServiceClientProxyGenerator.cs
- FactoryRecord.cs
- DataGridViewMethods.cs
- StretchValidation.cs
- ValidationHelpers.cs
- SocketConnection.cs
- SqlGenericUtil.cs
- TemplatedEditableDesignerRegion.cs
- Font.cs
- StructuralCache.cs
- WinFormsComponentEditor.cs
- RestHandler.cs
- TypeToTreeConverter.cs
- Tag.cs
- FunctionDefinition.cs
- CodeAccessSecurityEngine.cs
- PropertyValidationContext.cs
- ProxyFragment.cs
- TypeConverterHelper.cs
- Polyline.cs