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
- GACIdentityPermission.cs
- ExpandedProjectionNode.cs
- AppDomainProtocolHandler.cs
- Transactions.cs
- TreeNodeStyleCollection.cs
- ReturnEventArgs.cs
- TdsEnums.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- FocusManager.cs
- SqlProviderManifest.cs
- XmlSchemaAll.cs
- Transform.cs
- SchemaLookupTable.cs
- Transform3DGroup.cs
- DataBoundLiteralControl.cs
- ContextMenu.cs
- SqlCommandBuilder.cs
- FontCacheLogic.cs
- ApplicationInterop.cs
- BitVector32.cs
- Splitter.cs
- HttpRequestTraceRecord.cs
- SeekableReadStream.cs
- ChildDocumentBlock.cs
- TemplatedWizardStep.cs
- DetailsViewDeletedEventArgs.cs
- HexParser.cs
- MemberRelationshipService.cs
- StrokeNodeOperations.cs
- IndexOutOfRangeException.cs
- DataGridViewCellPaintingEventArgs.cs
- IISUnsafeMethods.cs
- IssuedTokenClientCredential.cs
- WorkflowRuntimeServicesBehavior.cs
- GetPolicyDetailsRequest.cs
- SettingsPropertyNotFoundException.cs
- TimeSpanConverter.cs
- ImageMap.cs
- BasicCellRelation.cs
- UnSafeCharBuffer.cs
- GreaterThanOrEqual.cs
- TdsParserSessionPool.cs
- HttpContextBase.cs
- StandardTransformFactory.cs
- WindowsEditBoxRange.cs
- RenderCapability.cs
- BufferedOutputAsyncStream.cs
- PageAsyncTaskManager.cs
- MgmtResManager.cs
- StaticFileHandler.cs
- AsyncDataRequest.cs
- DesignDataSource.cs
- KnownBoxes.cs
- DivideByZeroException.cs
- AnnotationService.cs
- WebPartConnectionsCancelEventArgs.cs
- RectIndependentAnimationStorage.cs
- PageSetupDialog.cs
- MonthChangedEventArgs.cs
- TrailingSpaceComparer.cs
- ViewService.cs
- MetadataItemCollectionFactory.cs
- InternalResources.cs
- Int32Storage.cs
- RootBrowserWindowProxy.cs
- DecimalFormatter.cs
- RelationshipDetailsRow.cs
- Slider.cs
- DoubleCollectionConverter.cs
- RuntimeCompatibilityAttribute.cs
- ComponentManagerBroker.cs
- RSAPKCS1SignatureFormatter.cs
- DataSourceControlBuilder.cs
- ZipIOBlockManager.cs
- ActiveXHost.cs
- XPathChildIterator.cs
- NotifyInputEventArgs.cs
- ConnectionsZone.cs
- SiteMapNode.cs
- SqlSupersetValidator.cs
- XmlQueryContext.cs
- InvalidEnumArgumentException.cs
- MapPathBasedVirtualPathProvider.cs
- TrustManagerPromptUI.cs
- Equal.cs
- Accessible.cs
- AutomationProperties.cs
- Row.cs
- BlurBitmapEffect.cs
- ClickablePoint.cs
- WebServiceMethodData.cs
- TextServicesCompartment.cs
- ResourceLoader.cs
- SymLanguageVendor.cs
- AdornerPresentationContext.cs
- Tokenizer.cs
- counter.cs
- EventItfInfo.cs
- NamespaceImport.cs
- TextParaClient.cs