Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DesignerDeviceConfig.cs
- Listener.cs
- EventLogEntry.cs
- SiteOfOriginContainer.cs
- SmuggledIUnknown.cs
- XamlDesignerSerializationManager.cs
- CaseStatement.cs
- ScriptingJsonSerializationSection.cs
- PageRanges.cs
- ZoneLinkButton.cs
- AppModelKnownContentFactory.cs
- PopupRoot.cs
- FlowDocument.cs
- CodeDomConfigurationHandler.cs
- COM2TypeInfoProcessor.cs
- Shape.cs
- ClientTargetCollection.cs
- PerformanceCounterPermission.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SqlInternalConnection.cs
- WebPartAuthorizationEventArgs.cs
- DbUpdateCommandTree.cs
- InputProcessorProfiles.cs
- PreviewControlDesigner.cs
- ThousandthOfEmRealDoubles.cs
- GradientStopCollection.cs
- HeaderCollection.cs
- PlacementWorkspace.cs
- IntegerValidatorAttribute.cs
- MediaScriptCommandRoutedEventArgs.cs
- RIPEMD160Managed.cs
- ScriptRef.cs
- LoginCancelEventArgs.cs
- AudioDeviceOut.cs
- AnnotationResourceChangedEventArgs.cs
- BuildProvidersCompiler.cs
- AttributeEmitter.cs
- PaperSource.cs
- SqlDataSourceSelectingEventArgs.cs
- ThreadAttributes.cs
- IdentityNotMappedException.cs
- QuaternionRotation3D.cs
- CompareInfo.cs
- BamlRecordReader.cs
- DesignOnlyAttribute.cs
- FrugalMap.cs
- EdmSchemaAttribute.cs
- PerformanceCounterPermissionAttribute.cs
- ViewSimplifier.cs
- ScriptingJsonSerializationSection.cs
- QuadraticEase.cs
- TextDecorationUnitValidation.cs
- LostFocusEventManager.cs
- StackOverflowException.cs
- MethodToken.cs
- SqlDataSourceStatusEventArgs.cs
- TypeBuilderInstantiation.cs
- RouteValueDictionary.cs
- LeaseManager.cs
- ServerValidateEventArgs.cs
- XPathAxisIterator.cs
- TextTreeUndoUnit.cs
- DispatchWrapper.cs
- ImageFormatConverter.cs
- HostProtectionException.cs
- AdornerPresentationContext.cs
- FunctionNode.cs
- WindowsAuthenticationEventArgs.cs
- TransactionContext.cs
- FtpWebRequest.cs
- HtmlContainerControl.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- LazyTextWriterCreator.cs
- StrongNameMembershipCondition.cs
- DetailsViewInsertedEventArgs.cs
- HtmlLink.cs
- ExpressionParser.cs
- UxThemeWrapper.cs
- ClearCollection.cs
- CodeComment.cs
- ThumbButtonInfoCollection.cs
- GridViewUpdatedEventArgs.cs
- CompiledXpathExpr.cs
- XmlSchemaAttributeGroupRef.cs
- XmlSortKey.cs
- ItemMap.cs
- EmptyElement.cs
- Relationship.cs
- MimeMapping.cs
- InputLanguageSource.cs
- Helpers.cs
- NavigationHelper.cs
- PartialList.cs
- InvalidPropValue.cs
- ToolStripRendererSwitcher.cs
- ImageMap.cs
- RegistrySecurity.cs
- PerfCounters.cs
- WizardSideBarListControlItem.cs
- Point3DValueSerializer.cs