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
- DefaultTraceListener.cs
- ScrollBarAutomationPeer.cs
- LongValidatorAttribute.cs
- XmlAnyElementAttributes.cs
- InstanceNormalEvent.cs
- SimpleRecyclingCache.cs
- GridViewSortEventArgs.cs
- RoutingSection.cs
- AnimationLayer.cs
- CopyOfAction.cs
- IssuedTokenClientCredential.cs
- SafeTimerHandle.cs
- SectionInput.cs
- HttpCacheVaryByContentEncodings.cs
- UpWmlPageAdapter.cs
- MenuRendererClassic.cs
- DeviceFilterEditorDialog.cs
- KeyBinding.cs
- ReadingWritingEntityEventArgs.cs
- ProcessInputEventArgs.cs
- ToolStripSystemRenderer.cs
- FixedFlowMap.cs
- MatrixValueSerializer.cs
- Thread.cs
- CodeObject.cs
- Math.cs
- MarkerProperties.cs
- ConfigXmlElement.cs
- NamespaceInfo.cs
- DeploymentSection.cs
- GridPattern.cs
- CustomAttributeFormatException.cs
- ValidatedControlConverter.cs
- SpotLight.cs
- EnumerableCollectionView.cs
- EnumConverter.cs
- AttachmentCollection.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- FillErrorEventArgs.cs
- PackWebRequest.cs
- IntranetCredentialPolicy.cs
- DocumentEventArgs.cs
- ComponentResourceManager.cs
- IItemProperties.cs
- BaseInfoTable.cs
- ViewManager.cs
- DataGridViewColumnEventArgs.cs
- SortQuery.cs
- SafeTokenHandle.cs
- DriveNotFoundException.cs
- TargetParameterCountException.cs
- JsonFormatReaderGenerator.cs
- DataColumnPropertyDescriptor.cs
- PerformanceCountersElement.cs
- EasingKeyFrames.cs
- UdpDiscoveryMessageFilter.cs
- FlowThrottle.cs
- ToolStripItemEventArgs.cs
- BamlTreeNode.cs
- PackUriHelper.cs
- StoryFragments.cs
- SpellerInterop.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- AttributeQuery.cs
- TextSpan.cs
- SimpleType.cs
- NameValueConfigurationCollection.cs
- TryExpression.cs
- MarkupExtensionParser.cs
- StateMachineHistory.cs
- HttpHostedTransportConfiguration.cs
- ControlIdConverter.cs
- CodeNamespace.cs
- ServiceRouteHandler.cs
- AsymmetricSignatureDeformatter.cs
- StatusBar.cs
- CollectionViewGroupInternal.cs
- SyndicationElementExtension.cs
- TypeElementCollection.cs
- QilReplaceVisitor.cs
- MgmtConfigurationRecord.cs
- AliasGenerator.cs
- Attachment.cs
- JsonReader.cs
- BlurEffect.cs
- SyndicationDeserializer.cs
- validation.cs
- CachedBitmap.cs
- PrintControllerWithStatusDialog.cs
- MenuItemStyleCollection.cs
- XomlDesignerLoader.cs
- UnknownWrapper.cs
- VideoDrawing.cs
- HttpRuntimeSection.cs
- NegotiateStream.cs
- CodeMethodInvokeExpression.cs
- ObjectReaderCompiler.cs
- ViewManagerAttribute.cs
- PrefixQName.cs
- ArrayConverter.cs