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
- WorkflowFileItem.cs
- EntityDataSourceChangingEventArgs.cs
- IsolatedStorage.cs
- connectionpool.cs
- CapabilitiesSection.cs
- LogStore.cs
- Clock.cs
- ManifestResourceInfo.cs
- MenuStrip.cs
- ExcludePathInfo.cs
- NullableFloatSumAggregationOperator.cs
- AspProxy.cs
- WSDualHttpBindingElement.cs
- CommandHelpers.cs
- BamlMapTable.cs
- OverrideMode.cs
- PeerCredentialElement.cs
- HttpProfileGroupBase.cs
- SQLResource.cs
- SizeKeyFrameCollection.cs
- NumericUpDown.cs
- NativeMethods.cs
- CapabilitiesState.cs
- _IPv4Address.cs
- Int16.cs
- Light.cs
- BindStream.cs
- hebrewshape.cs
- WsiProfilesElementCollection.cs
- DnsPermission.cs
- WorkflowPersistenceService.cs
- ToolBarPanel.cs
- SurrogateEncoder.cs
- PreviewKeyDownEventArgs.cs
- DesignSurfaceEvent.cs
- WindowsImpersonationContext.cs
- TextRangeProviderWrapper.cs
- StringUtil.cs
- EntityCollectionChangedParams.cs
- X509CertificateCollection.cs
- ActiveXHost.cs
- GenericUriParser.cs
- MarkupExtensionParser.cs
- InputLanguageEventArgs.cs
- EnumType.cs
- propertyentry.cs
- IndentedWriter.cs
- RegexCapture.cs
- Point3DCollection.cs
- ObjectQuery.cs
- XPathAncestorQuery.cs
- EntitySetRetriever.cs
- ExpressionBuilderCollection.cs
- PingOptions.cs
- CodeCommentStatement.cs
- LinqDataSourceSelectEventArgs.cs
- CmsInterop.cs
- SecurityState.cs
- LogicalExpressionTypeConverter.cs
- ActivationArguments.cs
- MdiWindowListItemConverter.cs
- IdentityValidationException.cs
- StructuredTypeEmitter.cs
- File.cs
- UnauthorizedAccessException.cs
- odbcmetadatacollectionnames.cs
- ToolStripContentPanel.cs
- ToolStripItemBehavior.cs
- AttributeCollection.cs
- Types.cs
- AssemblyCollection.cs
- GenericPrincipal.cs
- XomlCompilerParameters.cs
- Light.cs
- MessageDecoder.cs
- DesignColumn.cs
- BookmarkScopeHandle.cs
- BitmapEffectDrawingContextWalker.cs
- DataGridViewColumnTypeEditor.cs
- LocalizationParserHooks.cs
- sqlser.cs
- ReflectEventDescriptor.cs
- TriggerCollection.cs
- MenuBindingsEditor.cs
- XmlSchemaAny.cs
- ReadOnlyTernaryTree.cs
- RuleSetReference.cs
- diagnosticsswitches.cs
- TransformDescriptor.cs
- NativeWrapper.cs
- TaskFileService.cs
- NameScopePropertyAttribute.cs
- RedirectionProxy.cs
- FilterableAttribute.cs
- StrokeCollection.cs
- ToolTipService.cs
- TraceListeners.cs
- ServiceProviders.cs
- EntityDataSourceWrapperCollection.cs
- DataServiceRequestException.cs