Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / 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 : BrendanM 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. //---------------------------------------------------------------------------- // ///// // Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for Invoke Pattern // // History: // 06/23/2003 : BrendanM 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
- ComboBox.cs
- ListenerHandler.cs
- IsolatedStorageSecurityState.cs
- TypedRowHandler.cs
- _FixedSizeReader.cs
- FloaterParagraph.cs
- TTSEvent.cs
- ViewStateException.cs
- SystemIcmpV4Statistics.cs
- SqlAliaser.cs
- SqlUserDefinedTypeAttribute.cs
- TextTreeTextNode.cs
- UnhandledExceptionEventArgs.cs
- ModuleBuilder.cs
- BindingManagerDataErrorEventArgs.cs
- Baml2006ReaderFrame.cs
- AddInContractAttribute.cs
- ConfigurationLoader.cs
- ProxyHwnd.cs
- ClientBuildManagerCallback.cs
- ConfigurationValues.cs
- WebColorConverter.cs
- EventHandlersStore.cs
- GlobalId.cs
- TextSpanModifier.cs
- ListViewGroupItemCollection.cs
- NullableLongAverageAggregationOperator.cs
- StatementContext.cs
- RowSpanVector.cs
- CharUnicodeInfo.cs
- PropertyNames.cs
- prompt.cs
- Substitution.cs
- ValidationSettings.cs
- MenuItemStyleCollection.cs
- unsafenativemethodsother.cs
- SerialPort.cs
- SqlUtil.cs
- ObjectDataSource.cs
- ReturnValue.cs
- Variant.cs
- SchemaCollectionCompiler.cs
- PublishLicense.cs
- ArrayTypeMismatchException.cs
- BindingFormattingDialog.cs
- CodeTypeParameterCollection.cs
- StrokeNodeOperations2.cs
- DataGridViewCellStyle.cs
- ProxyWebPartManager.cs
- FastEncoder.cs
- OleDbReferenceCollection.cs
- HttpProfileGroupBase.cs
- WmlLinkAdapter.cs
- LambdaValue.cs
- DelegateBodyWriter.cs
- EmptyElement.cs
- XmlSchemaAttributeGroup.cs
- ActivityExecutorSurrogate.cs
- StateMachineWorkflowDesigner.cs
- LassoSelectionBehavior.cs
- basecomparevalidator.cs
- ScrollEvent.cs
- EditingCoordinator.cs
- SettingsContext.cs
- EventWaitHandleSecurity.cs
- WebPartManagerInternals.cs
- XmlCharCheckingWriter.cs
- XmlIlVisitor.cs
- ExtendedProtectionPolicyTypeConverter.cs
- RuleAttributes.cs
- Int32Collection.cs
- VisualTreeHelper.cs
- Errors.cs
- TextView.cs
- DrawingContext.cs
- ExpandedWrapper.cs
- EmbeddedMailObject.cs
- QilReplaceVisitor.cs
- ClassImporter.cs
- DataGridColumnsPage.cs
- CodeRegionDirective.cs
- EntityContainerEmitter.cs
- HMAC.cs
- EncoderReplacementFallback.cs
- dataprotectionpermissionattribute.cs
- RelOps.cs
- PermissionAttributes.cs
- Roles.cs
- ListViewTableCell.cs
- XmlSchemaSimpleContentRestriction.cs
- StrokeFIndices.cs
- PageBreakRecord.cs
- BitmapImage.cs
- FunctionCommandText.cs
- ConfigurationCollectionAttribute.cs
- DBBindings.cs
- ByteConverter.cs
- TypeInformation.cs
- ControlPaint.cs
- AppDomainResourcePerfCounters.cs