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
- Attachment.cs
- ComponentDispatcherThread.cs
- BamlBinaryReader.cs
- HttpException.cs
- DataProtection.cs
- metrodevice.cs
- ImmutableAssemblyCacheEntry.cs
- RuntimeConfig.cs
- TaskSchedulerException.cs
- UIntPtr.cs
- ProgressBar.cs
- RectangleGeometry.cs
- XmlConvert.cs
- OdbcConnectionStringbuilder.cs
- StronglyTypedResourceBuilder.cs
- VisualState.cs
- ResourceDescriptionAttribute.cs
- XmlWriter.cs
- IdentityNotMappedException.cs
- XamlSerializer.cs
- ProfileWorkflowElement.cs
- QueryCacheManager.cs
- DataObjectMethodAttribute.cs
- ClassGenerator.cs
- DesignObjectWrapper.cs
- CurrencyManager.cs
- SqlDependencyUtils.cs
- smtppermission.cs
- PlanCompiler.cs
- CommentAction.cs
- PolicyManager.cs
- ToolStripOverflowButton.cs
- WebPart.cs
- ResourceSetExpression.cs
- FastPropertyAccessor.cs
- ConfigLoader.cs
- ZipArchive.cs
- CookieProtection.cs
- FormatStringEditor.cs
- KeyNotFoundException.cs
- DataGridViewCellPaintingEventArgs.cs
- ListViewCancelEventArgs.cs
- TailPinnedEventArgs.cs
- TransformValueSerializer.cs
- CaretElement.cs
- InternalControlCollection.cs
- WpfWebRequestHelper.cs
- Bidi.cs
- ListViewPagedDataSource.cs
- InvalidAsynchronousStateException.cs
- UriSchemeKeyedCollection.cs
- XXXInfos.cs
- ToolboxComponentsCreatedEventArgs.cs
- SharedPersonalizationStateInfo.cs
- SuppressIldasmAttribute.cs
- StreamGeometryContext.cs
- SimpleExpression.cs
- MinimizableAttributeTypeConverter.cs
- _HeaderInfo.cs
- OutputCacheSettings.cs
- DbConnectionInternal.cs
- XmlSchemaExternal.cs
- XmlQueryTypeFactory.cs
- CreateUserErrorEventArgs.cs
- RoutingExtensionElement.cs
- Aes.cs
- WorkflowServiceHost.cs
- RadioButtonStandardAdapter.cs
- ObjectIDGenerator.cs
- RealProxy.cs
- DataGridViewElement.cs
- FontResourceCache.cs
- DocumentViewer.cs
- UserControl.cs
- SafeSecurityHelper.cs
- ValueTypeFixupInfo.cs
- NameValuePermission.cs
- ComponentResourceManager.cs
- XmlValidatingReader.cs
- ModelItemDictionaryImpl.cs
- thaishape.cs
- SharedStatics.cs
- AuthenticationSection.cs
- XmlSchemaSubstitutionGroup.cs
- NavigateUrlConverter.cs
- SchemaElementLookUpTableEnumerator.cs
- ProjectionCamera.cs
- OutOfProcStateClientManager.cs
- RootDesignerSerializerAttribute.cs
- TextLineBreak.cs
- XmlSchemaSimpleTypeUnion.cs
- SafePEFileHandle.cs
- Win32.cs
- SqlDataSourceFilteringEventArgs.cs
- AmbientProperties.cs
- CacheAxisQuery.cs
- ItemContainerPattern.cs
- RenderContext.cs
- SQLInt64.cs
- _LocalDataStore.cs