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
- selecteditemcollection.cs
- Queue.cs
- TextEditorTyping.cs
- SafeEventHandle.cs
- ProviderCommandInfoUtils.cs
- RowToFieldTransformer.cs
- DataObject.cs
- XslAstAnalyzer.cs
- TemplateControlParser.cs
- GeneralTransform3DGroup.cs
- ArrayElementGridEntry.cs
- SkipStoryboardToFill.cs
- SqlUtil.cs
- EntityContainerEmitter.cs
- EntityDesignerDataSourceView.cs
- ConnectionStringsExpressionBuilder.cs
- RenderTargetBitmap.cs
- XmlAttributeProperties.cs
- ByteStorage.cs
- MsmqIntegrationReceiveParameters.cs
- ButtonField.cs
- XmlQualifiedName.cs
- Literal.cs
- HttpVersion.cs
- FormsAuthentication.cs
- SchemaObjectWriter.cs
- RegexRunner.cs
- StubHelpers.cs
- EntityDataSourceMemberPath.cs
- DataSourceViewSchemaConverter.cs
- StrongNamePublicKeyBlob.cs
- FlowLayoutSettings.cs
- InputBinding.cs
- AnnotationMap.cs
- FlatButtonAppearance.cs
- SequenceDesigner.cs
- LinearQuaternionKeyFrame.cs
- StatusBarPanelClickEvent.cs
- UICuesEvent.cs
- ProtectedProviderSettings.cs
- StylusShape.cs
- streamingZipPartStream.cs
- UriScheme.cs
- TypeConstant.cs
- ProcessMonitor.cs
- XamlStream.cs
- IISMapPath.cs
- EncryptedPackage.cs
- SemanticKeyElement.cs
- PrivilegeNotHeldException.cs
- MediaElementAutomationPeer.cs
- WindowsListViewGroup.cs
- LambdaCompiler.Address.cs
- RectAnimation.cs
- SchemaNames.cs
- IMembershipProvider.cs
- DesignerLinkAdapter.cs
- ParallelForEach.cs
- OleDbConnectionFactory.cs
- GenericWebPart.cs
- RefreshPropertiesAttribute.cs
- CalendarButtonAutomationPeer.cs
- CategoryEditor.cs
- ErrorView.xaml.cs
- ObjectHandle.cs
- Splitter.cs
- WorkItem.cs
- CreateUserWizardAutoFormat.cs
- ProgressiveCrcCalculatingStream.cs
- EventPrivateKey.cs
- InputMethodStateChangeEventArgs.cs
- TextBox.cs
- documentsequencetextview.cs
- WindowsListViewItemCheckBox.cs
- SemanticKeyElement.cs
- DeclarativeCatalogPart.cs
- WindowsToolbarAsMenu.cs
- CodeRegionDirective.cs
- System.Data_BID.cs
- QueryOperator.cs
- LinkButton.cs
- SchemaImporterExtension.cs
- Calendar.cs
- SqlXml.cs
- ComplexPropertyEntry.cs
- PackWebRequest.cs
- ActivityDesignerResources.cs
- SizeConverter.cs
- ConditionValidator.cs
- CodeDOMUtility.cs
- BinaryObjectWriter.cs
- DataBinder.cs
- DiagnosticTraceSource.cs
- DisplayInformation.cs
- SamlConditions.cs
- SharedPersonalizationStateInfo.cs
- InstanceNameConverter.cs
- IOException.cs
- SkinBuilder.cs
- ForeignConstraint.cs