Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WindowPattern.cs
- WCFBuildProvider.cs
- ResourceDefaultValueAttribute.cs
- EventSourceCreationData.cs
- DBCSCodePageEncoding.cs
- NotifyCollectionChangedEventArgs.cs
- PropertyGeneratedEventArgs.cs
- MessageQueue.cs
- WorkflowLayouts.cs
- StorageMappingItemCollection.cs
- ForwardPositionQuery.cs
- XmlDesigner.cs
- TextTreeTextBlock.cs
- ContentElementAutomationPeer.cs
- DefaultValueMapping.cs
- OdbcCommandBuilder.cs
- oledbmetadatacolumnnames.cs
- SafeWaitHandle.cs
- WrappedDispatcherException.cs
- WebPartCancelEventArgs.cs
- ProtocolElementCollection.cs
- PropertyValueChangedEvent.cs
- BitmapEffect.cs
- mansign.cs
- SslSecurityTokenParameters.cs
- FixedSOMFixedBlock.cs
- DiagnosticsElement.cs
- NoneExcludedImageIndexConverter.cs
- PropertySet.cs
- CodeThrowExceptionStatement.cs
- GPStream.cs
- HtmlFormWrapper.cs
- SafeFindHandle.cs
- DataGridViewHeaderCell.cs
- StringUtil.cs
- CLRBindingWorker.cs
- WebBrowser.cs
- OutputCacheModule.cs
- TableDetailsRow.cs
- ProcessThreadCollection.cs
- ContentTypeSettingClientMessageFormatter.cs
- PermissionAttributes.cs
- XomlSerializationHelpers.cs
- PersonalizationStateQuery.cs
- ChildrenQuery.cs
- QueryableDataSourceEditData.cs
- SqlResolver.cs
- returneventsaver.cs
- Hash.cs
- TextDecorationCollectionConverter.cs
- WebPart.cs
- NegatedConstant.cs
- RetrieveVirtualItemEventArgs.cs
- CustomGrammar.cs
- GridItemPattern.cs
- RelatedView.cs
- PerformanceCounter.cs
- MemberHolder.cs
- MetafileHeader.cs
- SmiContext.cs
- WhitespaceRule.cs
- ContentHostHelper.cs
- Positioning.cs
- GeometryHitTestResult.cs
- PhoneCall.cs
- ContextMenu.cs
- TraceXPathNavigator.cs
- NullableIntSumAggregationOperator.cs
- AlgoModule.cs
- EncodingFallbackAwareXmlTextWriter.cs
- XPathSelectionIterator.cs
- XsdBuilder.cs
- FixedSOMTableRow.cs
- XMLUtil.cs
- CatalogPartCollection.cs
- PointCollection.cs
- ColumnResizeUndoUnit.cs
- TemplateParser.cs
- TableLayoutSettings.cs
- ExpandedWrapper.cs
- EnumerableRowCollectionExtensions.cs
- WebScriptMetadataFormatter.cs
- Menu.cs
- ToolboxBitmapAttribute.cs
- ProxyWebPartConnectionCollection.cs
- DataGridViewColumnCollection.cs
- SmtpReplyReaderFactory.cs
- Fx.cs
- AttachedAnnotationChangedEventArgs.cs
- FormatSettings.cs
- CodeTypeReference.cs
- XmlBindingWorker.cs
- WindowsContainer.cs
- HttpProfileGroupBase.cs
- WebConfigurationHostFileChange.cs
- PrimaryKeyTypeConverter.cs
- SingleStorage.cs
- Container.cs
- CodeGenerationManager.cs
- PrePrepareMethodAttribute.cs