Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / VirtualizedItemPattern.cs / 1305600 / VirtualizedItemPattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for VirtualizedItem Pattern // // History: // 10/21/2008 : [....] - created // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation { ////// Represents items inside containers which can be virtualized, this pattern can be used to realize them. /// #if (INTERNAL_COMPILE) internal class VirtualizedItemPattern: BasePattern #else public class VirtualizedItemPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///VirtualizedItem pattern public static readonly AutomationPattern Pattern = VirtualizedItemPatternIdentifiers.Pattern; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Request that a placeholder element make itself fully available. Blocks /// until element is available, which could take time. /// Parent control may scroll as a side effect if the container needs to /// bring the item into view in order to devirtualize it. /// public void Realize() { UiaCoreApi.VirtualizedItemPattern_Realize(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new VirtualizedItemPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for VirtualizedItem Pattern // // History: // 10/21/2008 : [....] - created // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation { ////// Represents items inside containers which can be virtualized, this pattern can be used to realize them. /// #if (INTERNAL_COMPILE) internal class VirtualizedItemPattern: BasePattern #else public class VirtualizedItemPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///VirtualizedItem pattern public static readonly AutomationPattern Pattern = VirtualizedItemPatternIdentifiers.Pattern; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Request that a placeholder element make itself fully available. Blocks /// until element is available, which could take time. /// Parent control may scroll as a side effect if the container needs to /// bring the item into view in order to devirtualize it. /// public void Realize() { UiaCoreApi.VirtualizedItemPattern_Realize(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new VirtualizedItemPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // 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
- ReadContentAsBinaryHelper.cs
- PerformanceCountersBase.cs
- PerformanceCounterLib.cs
- ColorIndependentAnimationStorage.cs
- httpapplicationstate.cs
- CapabilitiesSection.cs
- WebBrowserPermission.cs
- ProtocolsConfiguration.cs
- XPathSelfQuery.cs
- DesignSurfaceServiceContainer.cs
- MenuTracker.cs
- QuaternionValueSerializer.cs
- DataGridViewSortCompareEventArgs.cs
- DCSafeHandle.cs
- SqlDataReaderSmi.cs
- Socket.cs
- SimpleHandlerFactory.cs
- CodeAttributeArgument.cs
- HtmlImage.cs
- Pair.cs
- SoapReflectionImporter.cs
- __Filters.cs
- DispatcherExceptionEventArgs.cs
- RequestStatusBarUpdateEventArgs.cs
- SmtpClient.cs
- Expression.cs
- SiteMapDataSourceView.cs
- PageVisual.cs
- UnsafeNativeMethods.cs
- WpfPayload.cs
- CqlParser.cs
- JsonUriDataContract.cs
- WebPartMovingEventArgs.cs
- PersonalizableTypeEntry.cs
- ValidatedMobileControlConverter.cs
- MessageEncodingBindingElement.cs
- PropertyStore.cs
- SecurityRuntime.cs
- SqlMethodTransformer.cs
- XmlSchemaCompilationSettings.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SctClaimDictionary.cs
- WebBrowserEvent.cs
- Peer.cs
- IBuiltInEvidence.cs
- ListManagerBindingsCollection.cs
- JsonFormatMapping.cs
- DetailsViewPageEventArgs.cs
- MessageProperties.cs
- SqlTrackingService.cs
- DbConnectionPoolGroupProviderInfo.cs
- PropertyInformation.cs
- BulletedList.cs
- Point3DIndependentAnimationStorage.cs
- ResourceDictionary.cs
- ToggleButton.cs
- MimeTypeMapper.cs
- ClientSponsor.cs
- Scanner.cs
- UserValidatedEventArgs.cs
- EventRoute.cs
- XmlSchemaExternal.cs
- ProviderCollection.cs
- ScriptingProfileServiceSection.cs
- LateBoundBitmapDecoder.cs
- ScrollChrome.cs
- TemplateField.cs
- WindowsStartMenu.cs
- NewArray.cs
- TypeConverterAttribute.cs
- LineServices.cs
- NativeWindow.cs
- InternalsVisibleToAttribute.cs
- DeferredReference.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RuntimeConfigLKG.cs
- EntityObject.cs
- ObjectSpanRewriter.cs
- MdiWindowListItemConverter.cs
- PerformanceCounter.cs
- File.cs
- DataGridViewCellLinkedList.cs
- CharAnimationUsingKeyFrames.cs
- ComPersistableTypeElement.cs
- DBSchemaTable.cs
- DecoderBestFitFallback.cs
- RoutedEvent.cs
- Int32Animation.cs
- FontEmbeddingManager.cs
- GridViewAutomationPeer.cs
- EntityDataSourceUtil.cs
- UIElementParaClient.cs
- ToolStripItemClickedEventArgs.cs
- WebPartMovingEventArgs.cs
- StreamGeometry.cs
- DayRenderEvent.cs
- PropertyDescriptorCollection.cs
- WebColorConverter.cs
- XPathDescendantIterator.cs
- HttpRequestWrapper.cs