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
- EditingCommands.cs
- DataTableTypeConverter.cs
- ObjectView.cs
- XmlSchemaDatatype.cs
- DataListItem.cs
- DataServices.cs
- ControlSerializer.cs
- OpenTypeLayoutCache.cs
- UnauthorizedAccessException.cs
- OleDbEnumerator.cs
- BoolLiteral.cs
- SystemIPGlobalStatistics.cs
- Code.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- configsystem.cs
- OrderPreservingSpoolingTask.cs
- FactoryId.cs
- DataServiceHost.cs
- IISUnsafeMethods.cs
- SQLDecimalStorage.cs
- WebUtility.cs
- LightweightCodeGenerator.cs
- SemanticAnalyzer.cs
- ByteAnimationBase.cs
- EntryIndex.cs
- PageContent.cs
- DecimalConverter.cs
- PropertyEmitterBase.cs
- TypeTypeConverter.cs
- DataGridViewRow.cs
- Cursors.cs
- TrackingStringDictionary.cs
- AuthenticatingEventArgs.cs
- Substitution.cs
- securitycriticaldata.cs
- BitmapEffectInput.cs
- RtfFormatStack.cs
- ButtonAutomationPeer.cs
- DependencyProperty.cs
- MembershipValidatePasswordEventArgs.cs
- FormCollection.cs
- LineMetrics.cs
- BCryptSafeHandles.cs
- AutoGeneratedFieldProperties.cs
- ErrorWebPart.cs
- CheckPair.cs
- ValueTypeFixupInfo.cs
- ArrangedElement.cs
- MailAddressParser.cs
- SspiHelper.cs
- WebPartEventArgs.cs
- Stream.cs
- TransformBlockRequest.cs
- Int32CAMarshaler.cs
- PublisherIdentityPermission.cs
- ObjectStateManager.cs
- OAVariantLib.cs
- View.cs
- DataControlFieldHeaderCell.cs
- XmlSchemaExternal.cs
- ObjectTag.cs
- SchemaImporterExtensionElement.cs
- EditorAttribute.cs
- EnumConverter.cs
- RecognizerStateChangedEventArgs.cs
- RoutedEventValueSerializer.cs
- LogWriteRestartAreaState.cs
- RuleSettingsCollection.cs
- HttpFileCollection.cs
- CharEntityEncoderFallback.cs
- LocalizableAttribute.cs
- WCFServiceClientProxyGenerator.cs
- DataBoundLiteralControl.cs
- WebPartConnectionsConfigureVerb.cs
- Border.cs
- XamlStyleSerializer.cs
- NavigationProgressEventArgs.cs
- Attribute.cs
- LoadedOrUnloadedOperation.cs
- ButtonColumn.cs
- MaskDescriptor.cs
- SaveFileDialog.cs
- UrlMapping.cs
- ContentType.cs
- sqlinternaltransaction.cs
- RenamedEventArgs.cs
- SQLInt16Storage.cs
- DataObjectPastingEventArgs.cs
- Task.cs
- DbReferenceCollection.cs
- SelectionUIService.cs
- PageTheme.cs
- SizeAnimation.cs
- BinHexEncoding.cs
- DecoderReplacementFallback.cs
- MetadataCache.cs
- DiscoveryInnerClientAdhocCD1.cs
- MessageBox.cs
- SmiGettersStream.cs
- HttpCacheParams.cs