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
- PropertyGridEditorPart.cs
- SecurityDocument.cs
- XmlNodeReader.cs
- XslTransform.cs
- SafeMILHandle.cs
- XamlBrushSerializer.cs
- ResolveResponseInfo.cs
- BaseComponentEditor.cs
- ListItemViewControl.cs
- ObjectTokenCategory.cs
- XmlHierarchicalEnumerable.cs
- ParentQuery.cs
- XmlNullResolver.cs
- TabletDeviceInfo.cs
- FieldNameLookup.cs
- MultiByteCodec.cs
- CollectionsUtil.cs
- followingquery.cs
- WinFormsSpinner.cs
- FontFaceLayoutInfo.cs
- XmlnsDictionary.cs
- FrameworkPropertyMetadata.cs
- SHA256.cs
- AddInSegmentDirectoryNotFoundException.cs
- XmlNotation.cs
- FileDialog_Vista.cs
- AssemblyNameProxy.cs
- CallInfo.cs
- CounterCreationDataCollection.cs
- PersonalizationProviderHelper.cs
- ProfileSettings.cs
- TextFormattingConverter.cs
- Debug.cs
- PageFunction.cs
- UpdateManifestForBrowserApplication.cs
- DockAndAnchorLayout.cs
- Property.cs
- ToolStripLabel.cs
- DesignerLoader.cs
- ConfigXmlSignificantWhitespace.cs
- LinkLabel.cs
- NamespaceInfo.cs
- ApplicationInfo.cs
- HiddenFieldPageStatePersister.cs
- Iis7Helper.cs
- ServiceAuthorizationBehavior.cs
- FixedTextBuilder.cs
- XmlChildNodes.cs
- CapabilitiesState.cs
- FloaterBaseParagraph.cs
- DrawingGroupDrawingContext.cs
- ImageDrawing.cs
- DataGridCommandEventArgs.cs
- XPathNodeHelper.cs
- LineServicesRun.cs
- OleServicesContext.cs
- GridView.cs
- PathSegment.cs
- TreeViewEvent.cs
- DataControlField.cs
- Mapping.cs
- ImageConverter.cs
- ToolStripStatusLabel.cs
- TextServicesLoader.cs
- GridSplitterAutomationPeer.cs
- DataGridViewCellStyleBuilderDialog.cs
- CacheDependency.cs
- FileDialogPermission.cs
- ZipIOBlockManager.cs
- BreakRecordTable.cs
- StateChangeEvent.cs
- ResourceSet.cs
- HwndSource.cs
- SchemaTableOptionalColumn.cs
- TableColumn.cs
- DocumentOutline.cs
- Freezable.cs
- Set.cs
- UnmanagedMemoryAccessor.cs
- HttpWebRequestElement.cs
- ObfuscateAssemblyAttribute.cs
- RowBinding.cs
- WinHttpWebProxyFinder.cs
- CodeAttributeArgument.cs
- ColorConvertedBitmapExtension.cs
- FixedLineResult.cs
- GetPageNumberCompletedEventArgs.cs
- ToolStripPanelCell.cs
- Application.cs
- XPathSelfQuery.cs
- PowerEase.cs
- DispatcherExceptionEventArgs.cs
- ObjectSet.cs
- MemberCollection.cs
- SoapFault.cs
- OperationValidationEventArgs.cs
- InputReport.cs
- ContainerFilterService.cs
- OutputCacheSection.cs
- LogManagementAsyncResult.cs