Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationClient / System / Windows / Automation / InvokePattern.cs / 1 / InvokePattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for Invoke Pattern // // History: // 06/23/2003 : [....] Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Represents objects that have a single, unambiguous, action associated with them. /// /// Examples of UI that implments this includes: /// Push buttons /// Hyperlinks /// Menu items /// Radio buttons /// Check boxes /// #if (INTERNAL_COMPILE) internal class InvokePattern: BasePattern #else public class InvokePattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private InvokePattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Invokable pattern public static readonly AutomationPattern Pattern = InvokePatternIdentifiers.Pattern; ///Event ID: Invoked - event used to watch for Invokable pattern Invoked events public static readonly AutomationEvent InvokedEvent = InvokePatternIdentifiers.InvokedEvent; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Request that the control initiate its action. /// Should return immediately without blocking. /// There is no way to determine what happened, when it happend, or whether /// anything happened at all. /// /// ////// This API does not work inside the secure execution environment. /// public void Invoke() { UiaCoreApi.InvokePattern_Invoke(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties // No properties #endregion Public Properties //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new InvokePattern(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
- WebPartVerbCollection.cs
- AssemblyUtil.cs
- DataBoundControlAdapter.cs
- CategoryValueConverter.cs
- ComponentConverter.cs
- ListMarkerSourceInfo.cs
- BoundColumn.cs
- SourceChangedEventArgs.cs
- BuildManagerHost.cs
- DbCommandDefinition.cs
- BrushConverter.cs
- ForceCopyBuildProvider.cs
- cookiecollection.cs
- BinaryWriter.cs
- HtmlForm.cs
- StrongName.cs
- SuppressMergeCheckAttribute.cs
- TabletDeviceInfo.cs
- ObjectStateEntry.cs
- ScaleTransform3D.cs
- EventWaitHandleSecurity.cs
- MessageHeaderException.cs
- XmlSchemaCompilationSettings.cs
- Section.cs
- QilDataSource.cs
- FormsAuthenticationEventArgs.cs
- XPathNodeIterator.cs
- PerformanceCounterLib.cs
- EnumConverter.cs
- LinearQuaternionKeyFrame.cs
- AssemblyBuilder.cs
- TextTreeExtractElementUndoUnit.cs
- XpsS0ValidatingLoader.cs
- ProviderCommandInfoUtils.cs
- ColumnPropertiesGroup.cs
- TextServicesDisplayAttribute.cs
- DataServiceProcessingPipeline.cs
- BooleanAnimationBase.cs
- BitmapInitialize.cs
- filewebrequest.cs
- TableLayoutPanelBehavior.cs
- Region.cs
- NTAccount.cs
- JournalEntryListConverter.cs
- IPHostEntry.cs
- DiscoveryDocument.cs
- ListItemCollection.cs
- TypeBuilder.cs
- XmlIgnoreAttribute.cs
- AdornerDecorator.cs
- TableNameAttribute.cs
- ScrollContentPresenter.cs
- ArrayConverter.cs
- DependencyPropertyChangedEventArgs.cs
- RuntimeResourceSet.cs
- SplitterCancelEvent.cs
- Point3DCollection.cs
- DateTimeFormat.cs
- CryptoKeySecurity.cs
- HttpCookie.cs
- EndOfStreamException.cs
- SystemResourceHost.cs
- AsnEncodedData.cs
- WindowsFont.cs
- WindowsNonControl.cs
- XmlAggregates.cs
- Win32KeyboardDevice.cs
- CatchBlock.cs
- MethodBuilderInstantiation.cs
- BatchWriter.cs
- LocalizationCodeDomSerializer.cs
- ToolboxItem.cs
- GridViewUpdateEventArgs.cs
- SqlNotificationRequest.cs
- ParseHttpDate.cs
- X500Name.cs
- SmiMetaData.cs
- QuadraticBezierSegment.cs
- WindowsGrip.cs
- ApplicationFileParser.cs
- ObjectParameterCollection.cs
- SchemeSettingElement.cs
- WindowsIdentity.cs
- CodeTypeDeclarationCollection.cs
- RoutingBehavior.cs
- GridViewPageEventArgs.cs
- SoapIgnoreAttribute.cs
- safelinkcollection.cs
- SafeProcessHandle.cs
- Thread.cs
- TabletDeviceInfo.cs
- Walker.cs
- IriParsingElement.cs
- SimpleTextLine.cs
- ErrorRuntimeConfig.cs
- Base64Stream.cs
- Vector3DIndependentAnimationStorage.cs
- HtmlTextArea.cs
- InstancePersistenceContext.cs
- CacheOutputQuery.cs