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
- SQLCharsStorage.cs
- Vector3DConverter.cs
- CircleHotSpot.cs
- DataObjectMethodAttribute.cs
- SchemaImporterExtensionsSection.cs
- XmlSchemaElement.cs
- DetailsViewRow.cs
- LinkedList.cs
- TypeContext.cs
- BamlResourceContent.cs
- PresentationAppDomainManager.cs
- EntitySqlQueryCacheKey.cs
- ListViewDesigner.cs
- TransactionScopeDesigner.cs
- SQLDecimal.cs
- OptimizerPatterns.cs
- VariableQuery.cs
- Mouse.cs
- ParserExtension.cs
- AssemblyContextControlItem.cs
- DataGridViewColumnHeaderCell.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ParameterToken.cs
- XmlUtil.cs
- SubpageParagraph.cs
- _Semaphore.cs
- TabletCollection.cs
- SslStream.cs
- WebPermission.cs
- SqlResolver.cs
- IPHostEntry.cs
- ClockGroup.cs
- OutputChannelBinder.cs
- DetailsViewCommandEventArgs.cs
- TypedRowHandler.cs
- TransformerConfigurationWizardBase.cs
- GenerateTemporaryTargetAssembly.cs
- ExceptionUtil.cs
- GeneralTransformGroup.cs
- DispatcherExceptionEventArgs.cs
- AxisAngleRotation3D.cs
- PersistenceTypeAttribute.cs
- _ShellExpression.cs
- ClientFormsIdentity.cs
- WebPartConnectionsDisconnectVerb.cs
- SatelliteContractVersionAttribute.cs
- ChildTable.cs
- Size.cs
- _NativeSSPI.cs
- SiteMapProvider.cs
- LocalValueEnumerator.cs
- Interlocked.cs
- Font.cs
- ConfigPathUtility.cs
- StatusStrip.cs
- WebRequestModulesSection.cs
- ExpressionBindings.cs
- PageThemeCodeDomTreeGenerator.cs
- OleDbInfoMessageEvent.cs
- DataObject.cs
- COM2PictureConverter.cs
- SurrogateDataContract.cs
- PolyBezierSegmentFigureLogic.cs
- XmlSerializerVersionAttribute.cs
- ComponentCollection.cs
- SeverityFilter.cs
- SizeChangedInfo.cs
- TextTreeRootTextBlock.cs
- SessionStateItemCollection.cs
- DataBoundControlHelper.cs
- RequestCacheEntry.cs
- VariantWrapper.cs
- SizeKeyFrameCollection.cs
- AppModelKnownContentFactory.cs
- CacheAxisQuery.cs
- RichTextBox.cs
- HorizontalAlignConverter.cs
- PromptBuilder.cs
- SchemaMapping.cs
- DataGridCell.cs
- XmlNotation.cs
- RpcCryptoContext.cs
- CheckBoxAutomationPeer.cs
- FilteredXmlReader.cs
- _SslState.cs
- MSG.cs
- SqlStatistics.cs
- ScrollViewerAutomationPeer.cs
- RegistryKey.cs
- ButtonBaseAdapter.cs
- WebPartDescriptionCollection.cs
- ScriptManager.cs
- InvalidCommandTreeException.cs
- ActivityExecutorSurrogate.cs
- BamlRecords.cs
- StringFunctions.cs
- ToolStripPanelRow.cs
- DataGridClipboardCellContent.cs
- BindableTemplateBuilder.cs
- ReferenceSchema.cs