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
- XmlnsPrefixAttribute.cs
- Nullable.cs
- InstallerTypeAttribute.cs
- StrokeNode.cs
- Evidence.cs
- _DigestClient.cs
- ColumnClickEvent.cs
- XmlWriterSettings.cs
- InstalledFontCollection.cs
- IImplicitResourceProvider.cs
- KeyValuePairs.cs
- thaishape.cs
- PickDesigner.xaml.cs
- DataColumnMapping.cs
- RegexBoyerMoore.cs
- DesignerLoader.cs
- HelpEvent.cs
- DeferredSelectedIndexReference.cs
- InfoCardPolicy.cs
- BypassElement.cs
- EntityDataSourceChangedEventArgs.cs
- ComplexTypeEmitter.cs
- ResourcePool.cs
- ArrayTypeMismatchException.cs
- WindowsGraphicsWrapper.cs
- PersistenceTypeAttribute.cs
- Brush.cs
- ConsumerConnectionPoint.cs
- DummyDataSource.cs
- OneWayChannelFactory.cs
- OdbcDataAdapter.cs
- RenameRuleObjectDialog.Designer.cs
- ObjectItemCachedAssemblyLoader.cs
- AttachedAnnotationChangedEventArgs.cs
- ParameterBuilder.cs
- TypeTypeConverter.cs
- ViewKeyConstraint.cs
- AlphabetConverter.cs
- ListItemConverter.cs
- ListItemCollection.cs
- Selection.cs
- GroupStyle.cs
- Activator.cs
- WebPartVerbsEventArgs.cs
- DataGridViewDesigner.cs
- TreeViewItemAutomationPeer.cs
- AdRotatorDesigner.cs
- _SslStream.cs
- CapabilitiesRule.cs
- DataGridViewCell.cs
- LinkTarget.cs
- InputLanguageCollection.cs
- MasterPage.cs
- BeginEvent.cs
- SafePEFileHandle.cs
- ReadingWritingEntityEventArgs.cs
- SecurityRuntime.cs
- LinkedResource.cs
- IndicCharClassifier.cs
- dsa.cs
- OptimalBreakSession.cs
- XamlTreeBuilder.cs
- Roles.cs
- Currency.cs
- ParameterCollection.cs
- SQLMembershipProvider.cs
- StatusBarPanelClickEvent.cs
- VolatileEnlistmentMultiplexing.cs
- LinkedList.cs
- BooleanAnimationUsingKeyFrames.cs
- XmlIgnoreAttribute.cs
- KeyPullup.cs
- SystemNetHelpers.cs
- keycontainerpermission.cs
- RsaSecurityKey.cs
- Button.cs
- PropertySourceInfo.cs
- AppDomainCompilerProxy.cs
- PartitionResolver.cs
- BinaryExpressionHelper.cs
- HttpProfileBase.cs
- DesignerForm.cs
- FixedNode.cs
- KeysConverter.cs
- EntityKey.cs
- ModifyActivitiesPropertyDescriptor.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- OleDbRowUpdatedEvent.cs
- AuthorizationRuleCollection.cs
- Wildcard.cs
- Label.cs
- DocumentPageViewAutomationPeer.cs
- QueryOptionExpression.cs
- BlurEffect.cs
- DrawItemEvent.cs
- SharingService.cs
- MetadataItemSerializer.cs
- Pkcs7Signer.cs
- ToolStripLabel.cs
- SqlPersonalizationProvider.cs