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
- ResolvedKeyFrameEntry.cs
- SelectionChangedEventArgs.cs
- VariantWrapper.cs
- DataIdProcessor.cs
- DynamicDiscoSearcher.cs
- SystemBrushes.cs
- COM2PictureConverter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RegexCapture.cs
- TriggerBase.cs
- Point3DCollectionConverter.cs
- ColorAnimation.cs
- XamlStackWriter.cs
- CapacityStreamGeometryContext.cs
- OleStrCAMarshaler.cs
- MediaTimeline.cs
- OleDbException.cs
- WorkerRequest.cs
- TextParentUndoUnit.cs
- DataGridCellsPresenter.cs
- BindingMemberInfo.cs
- SQLDateTime.cs
- unsafeIndexingFilterStream.cs
- StylusPlugin.cs
- CodeGen.cs
- VirtualPathProvider.cs
- ScaleTransform3D.cs
- PageAdapter.cs
- ColumnResizeAdorner.cs
- PagesSection.cs
- XmlEntityReference.cs
- SHA384Managed.cs
- CacheDependency.cs
- DeferredElementTreeState.cs
- VerificationException.cs
- StringWriter.cs
- WebRequestModulesSection.cs
- FontConverter.cs
- ObjectHandle.cs
- SessionStateUtil.cs
- EntityDataSourceChangingEventArgs.cs
- ThumbButtonInfo.cs
- LayoutTableCell.cs
- XPathNodePointer.cs
- CustomTokenProvider.cs
- EditorZoneDesigner.cs
- Main.cs
- ColumnWidthChangingEvent.cs
- DrawingAttributes.cs
- AssertFilter.cs
- XmlAnyAttributeAttribute.cs
- LayoutDump.cs
- ExceptionUtil.cs
- PieceDirectory.cs
- ClientApiGenerator.cs
- SiteMap.cs
- XamlPathDataSerializer.cs
- ActiveDocumentEvent.cs
- PrincipalPermission.cs
- LineBreakRecord.cs
- DataSet.cs
- Convert.cs
- RenameRuleObjectDialog.Designer.cs
- RelatedPropertyManager.cs
- ListBoxItemWrapperAutomationPeer.cs
- BinaryNode.cs
- Splitter.cs
- EntityContainerEmitter.cs
- DataTableNameHandler.cs
- PointLight.cs
- TypeCollectionDesigner.xaml.cs
- DBBindings.cs
- ModelFactory.cs
- EventData.cs
- XmlSchemaInfo.cs
- basenumberconverter.cs
- OdbcConnection.cs
- ServerValidateEventArgs.cs
- SelectionProviderWrapper.cs
- ResourceDictionaryCollection.cs
- XPathNode.cs
- Attributes.cs
- ValueOfAction.cs
- TemplateControlParser.cs
- ToolStripMenuItemCodeDomSerializer.cs
- ToolStripItemCollection.cs
- EmptyEnumerator.cs
- propertyentry.cs
- SqlAliasesReferenced.cs
- ButtonFlatAdapter.cs
- XamlPathDataSerializer.cs
- CollectionContainer.cs
- XLinq.cs
- KoreanLunisolarCalendar.cs
- _LoggingObject.cs
- CodeRegionDirective.cs
- FileAuthorizationModule.cs
- Char.cs
- ButtonFlatAdapter.cs
- ActivityExecutionContext.cs