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
- XmlChildEnumerator.cs
- ExpressionNormalizer.cs
- DataSpaceManager.cs
- SafeNativeMethods.cs
- ApplicationSecurityInfo.cs
- PassportAuthenticationModule.cs
- TimelineCollection.cs
- File.cs
- OleDbWrapper.cs
- ObjectListItem.cs
- LocalizationComments.cs
- LiteralLink.cs
- UnionExpr.cs
- EFTableProvider.cs
- CustomTypeDescriptor.cs
- DetectEofStream.cs
- DropDownList.cs
- ReturnType.cs
- XmlBinaryWriterSession.cs
- InplaceBitmapMetadataWriter.cs
- CodeTypeReferenceExpression.cs
- HttpWebRequest.cs
- SignatureGenerator.cs
- OleDbInfoMessageEvent.cs
- JsonWriterDelegator.cs
- GridLength.cs
- BinaryNegotiation.cs
- MsmqInputSessionChannel.cs
- XsltLoader.cs
- TextEditorParagraphs.cs
- StickyNoteHelper.cs
- TraceContextEventArgs.cs
- ByteViewer.cs
- Binding.cs
- XmlComplianceUtil.cs
- EdmItemCollection.OcAssemblyCache.cs
- SchemaTableOptionalColumn.cs
- AssociationEndMember.cs
- OdbcPermission.cs
- PerformanceCountersElement.cs
- CallbackValidatorAttribute.cs
- PeerPresenceInfo.cs
- CollectionCodeDomSerializer.cs
- XPathException.cs
- sqlinternaltransaction.cs
- Int32Collection.cs
- ComponentConverter.cs
- SchemaContext.cs
- CodeCatchClause.cs
- DataTablePropertyDescriptor.cs
- PopupRoot.cs
- UIHelper.cs
- SqlRecordBuffer.cs
- StrongNameUtility.cs
- CodeLabeledStatement.cs
- DecimalSumAggregationOperator.cs
- MetadataItem.cs
- Style.cs
- DetailsViewPagerRow.cs
- CacheRequest.cs
- ServicePoint.cs
- AutomationEventArgs.cs
- DataGridItemEventArgs.cs
- AtomParser.cs
- WizardStepBase.cs
- CapabilitiesSection.cs
- StringFormat.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ClientRequest.cs
- XmlAutoDetectWriter.cs
- AssemblyAttributes.cs
- StackBuilderSink.cs
- LocalBuilder.cs
- ContentPosition.cs
- Executor.cs
- ResourceManager.cs
- BinaryWriter.cs
- SqlRecordBuffer.cs
- WebPartConnectionsCloseVerb.cs
- SecurityPermission.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- IIS7WorkerRequest.cs
- XmlSchemaAny.cs
- WorkflowDefinitionDispenser.cs
- VisualStyleRenderer.cs
- XmlUtf8RawTextWriter.cs
- WebPartCloseVerb.cs
- SequenceQuery.cs
- ActivityMarkupSerializationProvider.cs
- CaseInsensitiveHashCodeProvider.cs
- DoWhileDesigner.xaml.cs
- SQlBooleanStorage.cs
- GeneralTransform2DTo3DTo2D.cs
- WindowsListViewItem.cs
- OutputCacheSection.cs
- SessionStateUtil.cs
- DockProviderWrapper.cs
- Journal.cs
- MobileCategoryAttribute.cs
- SignatureResourcePool.cs