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
- PersonalizableAttribute.cs
- FileSystemInfo.cs
- basenumberconverter.cs
- IIS7UserPrincipal.cs
- TemplateBindingExtension.cs
- KeyValueInternalCollection.cs
- SiteMapNode.cs
- CharConverter.cs
- RequestCache.cs
- TcpHostedTransportConfiguration.cs
- DataError.cs
- ContainerFilterService.cs
- HiddenFieldDesigner.cs
- StatusBarPanelClickEvent.cs
- XmlSortKeyAccumulator.cs
- RenderCapability.cs
- SafeNativeMethods.cs
- ValueUnavailableException.cs
- GZipDecoder.cs
- UserNameSecurityTokenAuthenticator.cs
- GenericEnumConverter.cs
- DefaultClaimSet.cs
- SecurityTokenSerializer.cs
- PasswordDeriveBytes.cs
- TypedAsyncResult.cs
- HostVisual.cs
- XmlReturnWriter.cs
- DescendantQuery.cs
- TextDecorationLocationValidation.cs
- StaticDataManager.cs
- Int32KeyFrameCollection.cs
- GeometryConverter.cs
- CodeIterationStatement.cs
- RoutedEventHandlerInfo.cs
- WebPartUserCapability.cs
- GeometryHitTestParameters.cs
- DatatypeImplementation.cs
- MonthChangedEventArgs.cs
- SettingsContext.cs
- GeometryCombineModeValidation.cs
- GenericAuthenticationEventArgs.cs
- MdImport.cs
- XamlReaderHelper.cs
- SendParametersContent.cs
- DataGridTextBoxColumn.cs
- StatusBarPanel.cs
- Profiler.cs
- IconBitmapDecoder.cs
- DelegatingHeader.cs
- EmbeddedObject.cs
- ColorConverter.cs
- UIElementHelper.cs
- RequestCacheValidator.cs
- DockingAttribute.cs
- WorkflowDesignerColors.cs
- Literal.cs
- CheckBox.cs
- AutomationPeer.cs
- DocumentationServerProtocol.cs
- DeviceSpecificChoiceCollection.cs
- ClassHandlersStore.cs
- SectionRecord.cs
- altserialization.cs
- WmlMobileTextWriter.cs
- ScriptBehaviorDescriptor.cs
- PrefixQName.cs
- PromptStyle.cs
- BitArray.cs
- DataGridColumnCollectionEditor.cs
- IERequestCache.cs
- SchemaCollectionCompiler.cs
- ImpersonateTokenRef.cs
- Int16AnimationBase.cs
- ProbeMatches11.cs
- FillBehavior.cs
- LastQueryOperator.cs
- DataSourceView.cs
- XmlFormatWriterGenerator.cs
- OutputCacheSection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- LoginView.cs
- AssociationTypeEmitter.cs
- MgmtConfigurationRecord.cs
- TabletDevice.cs
- CachedResourceDictionaryExtension.cs
- XmlAttributeHolder.cs
- Identity.cs
- XmlTextEncoder.cs
- CacheEntry.cs
- TypeTypeConverter.cs
- mediapermission.cs
- HttpStreamFormatter.cs
- DiagnosticTrace.cs
- ConvertEvent.cs
- ToolStripDropTargetManager.cs
- SafeEventLogWriteHandle.cs
- Roles.cs
- HttpValueCollection.cs
- CollaborationHelperFunctions.cs
- DataKeyCollection.cs