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
- UpdateCompiler.cs
- RuntimeConfigLKG.cs
- LayoutTable.cs
- SymmetricCryptoHandle.cs
- TextTreeRootNode.cs
- XmlKeywords.cs
- ReferenceSchema.cs
- InheritanceAttribute.cs
- TrustSection.cs
- FieldNameLookup.cs
- TemplateInstanceAttribute.cs
- XmlDataCollection.cs
- WindowsToolbarItemAsMenuItem.cs
- DrawToolTipEventArgs.cs
- DBSchemaRow.cs
- Selection.cs
- GACIdentityPermission.cs
- _FtpControlStream.cs
- CryptoApi.cs
- DynamicDataRouteHandler.cs
- CategoryNameCollection.cs
- Configuration.cs
- SmiGettersStream.cs
- MachineKeyConverter.cs
- UserMapPath.cs
- Control.cs
- RuntimeHandles.cs
- DirectoryInfo.cs
- TypeConverterHelper.cs
- MediaPlayer.cs
- SqlDataSourceCache.cs
- ProcessHostConfigUtils.cs
- FlowLayoutSettings.cs
- ModuleBuilder.cs
- BindableTemplateBuilder.cs
- MSG.cs
- BatchWriter.cs
- ConnectionConsumerAttribute.cs
- DataSourceHelper.cs
- ClientScriptManager.cs
- StructuralObject.cs
- EtwTrackingParticipant.cs
- EventLogException.cs
- BooleanConverter.cs
- Formatter.cs
- Size.cs
- CodeIdentifier.cs
- CroppedBitmap.cs
- ValidationPropertyAttribute.cs
- TokenBasedSet.cs
- XMLSyntaxException.cs
- Scene3D.cs
- HttpHeaderCollection.cs
- CheckPair.cs
- PrintPageEvent.cs
- NativeCppClassAttribute.cs
- SQLMembershipProvider.cs
- ImageList.cs
- ConstrainedGroup.cs
- SortKey.cs
- EntityAdapter.cs
- LicenseProviderAttribute.cs
- PageAsyncTask.cs
- OrderPreservingPipeliningSpoolingTask.cs
- CodeAccessSecurityEngine.cs
- ComNativeDescriptor.cs
- SymbolType.cs
- DataServiceQueryException.cs
- DependencyPropertyChangedEventArgs.cs
- FormClosedEvent.cs
- Span.cs
- ServiceInfoCollection.cs
- Int32CAMarshaler.cs
- LinqDataSourceDisposeEventArgs.cs
- XmlSchemaDocumentation.cs
- NavigatorInput.cs
- SystemDiagnosticsSection.cs
- VisualCollection.cs
- SchemaElementDecl.cs
- ButtonFieldBase.cs
- XmlNamespaceDeclarationsAttribute.cs
- EditorOptionAttribute.cs
- FormViewCommandEventArgs.cs
- EntityDataSourceQueryBuilder.cs
- QueryGenerator.cs
- _ListenerRequestStream.cs
- SessionState.cs
- DataStorage.cs
- DocumentReferenceCollection.cs
- TextReader.cs
- DataSourceIDConverter.cs
- EntityContainerEntitySet.cs
- ClientRuntimeConfig.cs
- Directory.cs
- WebConfigurationManager.cs
- SolidColorBrush.cs
- ParameterModifier.cs
- PersonalizationProviderHelper.cs
- RevocationPoint.cs
- StringUtil.cs