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
- CharAnimationBase.cs
- DataGridItem.cs
- HMACSHA512.cs
- Pkcs7Recipient.cs
- DefaultProxySection.cs
- State.cs
- WebConfigManager.cs
- EntityStoreSchemaFilterEntry.cs
- TableLayout.cs
- ConditionCollection.cs
- AVElementHelper.cs
- WindowsImpersonationContext.cs
- StyleConverter.cs
- HtmlElement.cs
- WebServiceErrorEvent.cs
- LinkArea.cs
- ValueTypeFixupInfo.cs
- SrgsOneOf.cs
- DoubleAnimationClockResource.cs
- WebHttpBehavior.cs
- MultipleViewPattern.cs
- DataDocumentXPathNavigator.cs
- LabelEditEvent.cs
- XPathChildIterator.cs
- BitmapEffectState.cs
- CroppedBitmap.cs
- IsolatedStorageFile.cs
- GridViewCancelEditEventArgs.cs
- CookieProtection.cs
- Border.cs
- ProgressBarBrushConverter.cs
- AnimatedTypeHelpers.cs
- ByteStack.cs
- TabControlCancelEvent.cs
- EmissiveMaterial.cs
- ListSourceHelper.cs
- InvalidOleVariantTypeException.cs
- Persist.cs
- StateChangeEvent.cs
- PeerApplication.cs
- DataBindingCollection.cs
- MetadataProperty.cs
- HeaderCollection.cs
- Descriptor.cs
- UrlMappingsModule.cs
- Filter.cs
- ChtmlFormAdapter.cs
- XmlQueryStaticData.cs
- UrlPath.cs
- TimeSpanConverter.cs
- ExpressionPrinter.cs
- UpDownBase.cs
- SessionState.cs
- LinqDataSourceHelper.cs
- COAUTHINFO.cs
- ThreadInterruptedException.cs
- SessionIDManager.cs
- StringBlob.cs
- SqlDataAdapter.cs
- TextLineBreak.cs
- EnterpriseServicesHelper.cs
- ListControl.cs
- Expression.cs
- NameValueConfigurationCollection.cs
- BaseTemplateParser.cs
- VersionConverter.cs
- FilteredReadOnlyMetadataCollection.cs
- PasswordTextNavigator.cs
- RegexStringValidatorAttribute.cs
- CollectionMarkupSerializer.cs
- ContentPresenter.cs
- Encoder.cs
- BamlTreeMap.cs
- ReliableChannelListener.cs
- Accessible.cs
- StatusBar.cs
- MediaPlayer.cs
- ClientSponsor.cs
- ToolStripSettings.cs
- DefaultClaimSet.cs
- AddInDeploymentState.cs
- Frame.cs
- BufferBuilder.cs
- MultiPageTextView.cs
- StorageMappingItemLoader.cs
- FeatureSupport.cs
- QueryHandler.cs
- PartialCachingControl.cs
- XPathSingletonIterator.cs
- DownloadProgressEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CodeSpit.cs
- ReachDocumentSequenceSerializer.cs
- OdbcPermission.cs
- ImmutableObjectAttribute.cs
- EllipseGeometry.cs
- ThemeDirectoryCompiler.cs
- SymLanguageVendor.cs
- TimeoutTimer.cs
- ExitEventArgs.cs