Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RoleServiceManager.cs
- MembershipPasswordException.cs
- RepeaterItemCollection.cs
- WindowsStatusBar.cs
- InteropBitmapSource.cs
- ObjectCacheHost.cs
- coordinatorscratchpad.cs
- CodeSubDirectoriesCollection.cs
- AdapterDictionary.cs
- UniqueConstraint.cs
- SQLBoolean.cs
- PageSetupDialog.cs
- PeerEndPoint.cs
- DBDataPermissionAttribute.cs
- Freezable.cs
- DataObject.cs
- FixedTextView.cs
- GenericRootAutomationPeer.cs
- DataTrigger.cs
- WindowsListViewGroupHelper.cs
- EditorPartChrome.cs
- PersistChildrenAttribute.cs
- BatchParser.cs
- TemplateControlParser.cs
- DynamicQueryableWrapper.cs
- FtpWebResponse.cs
- FontCollection.cs
- ReversePositionQuery.cs
- BufferedGraphics.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DuplicateWaitObjectException.cs
- ContentControl.cs
- FieldAccessException.cs
- SmtpNegotiateAuthenticationModule.cs
- SimpleRecyclingCache.cs
- UserPreferenceChangingEventArgs.cs
- CommandID.cs
- MetafileHeader.cs
- TaskFactory.cs
- XmlSchemaObject.cs
- CursorEditor.cs
- CalendarDay.cs
- ProxyHwnd.cs
- ContextDataSourceContextData.cs
- WebPartDisplayMode.cs
- DataGridItemEventArgs.cs
- UIElementIsland.cs
- InnerItemCollectionView.cs
- MenuItemStyleCollection.cs
- MobileContainerDesigner.cs
- localization.cs
- DrawingGroupDrawingContext.cs
- ICollection.cs
- RoutingUtilities.cs
- TranslateTransform.cs
- DataQuery.cs
- UIntPtr.cs
- SamlConstants.cs
- DesignDataSource.cs
- CryptoKeySecurity.cs
- ControlUtil.cs
- EditBehavior.cs
- BufferedReadStream.cs
- CapabilitiesState.cs
- DataTable.cs
- KeyboardDevice.cs
- InstanceKeyNotReadyException.cs
- InputLangChangeRequestEvent.cs
- SerializationEventsCache.cs
- ContextMenu.cs
- TrackingMemoryStreamFactory.cs
- UserControlFileEditor.cs
- TypeConverterValueSerializer.cs
- WebCategoryAttribute.cs
- HtmlButton.cs
- HtmlWindowCollection.cs
- FigureParaClient.cs
- DesignBindingEditor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BamlTreeNode.cs
- RectAnimationBase.cs
- EntitySqlQueryBuilder.cs
- SimpleHandlerBuildProvider.cs
- Localizer.cs
- ResXResourceSet.cs
- CodeTypeReferenceExpression.cs
- TextRange.cs
- Timeline.cs
- FixedBufferAttribute.cs
- SelectionItemPattern.cs
- ThemeableAttribute.cs
- ImageAnimator.cs
- SizeAnimation.cs
- ColumnReorderedEventArgs.cs
- ReadOnlyCollection.cs
- MachinePropertyVariants.cs
- ConfigurationManagerInternal.cs
- FileSystemInfo.cs
- FrameAutomationPeer.cs
- CatalogPartChrome.cs