Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / RepeatButtonAutomationPeer.cs / 1 / RepeatButtonAutomationPeer.cs
using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class RepeatButtonAutomationPeer : ButtonBaseAutomationPeer, IInvokeProvider { /// public RepeatButtonAutomationPeer(RepeatButton owner): base(owner) {} /// override protected string GetClassNameCore() { return "RepeatButton"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Button; } /// override public object GetPattern(PatternInterface patternInterface) { if(patternInterface == PatternInterface.Invoke) return this; return null; } void IInvokeProvider.Invoke() { if(!IsEnabled()) throw new ElementNotEnabledException(); RepeatButton owner = (RepeatButton)Owner; owner.AutomationButtonBaseClick(); } } } // 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
- HttpModuleActionCollection.cs
- SafeRightsManagementSessionHandle.cs
- QilInvokeLateBound.cs
- UInt16.cs
- DateTimeFormatInfo.cs
- NativeMethods.cs
- XPathNode.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataSourceCacheDurationConverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- StructuralObject.cs
- CompareValidator.cs
- XslCompiledTransform.cs
- Symbol.cs
- EnterpriseServicesHelper.cs
- Adorner.cs
- ImageList.cs
- XmlSerializableWriter.cs
- XmlSchemaGroupRef.cs
- MultilineStringConverter.cs
- ToolStripOverflowButton.cs
- ToolStripContainerActionList.cs
- ResourceKey.cs
- TypedReference.cs
- ContentDesigner.cs
- PartitionResolver.cs
- CodeCastExpression.cs
- DbQueryCommandTree.cs
- SQLDateTimeStorage.cs
- IdentityNotMappedException.cs
- TextTreeTextNode.cs
- EntityClientCacheEntry.cs
- ViewCellRelation.cs
- DBSchemaRow.cs
- FamilyCollection.cs
- SerializationSectionGroup.cs
- Binding.cs
- ConvertEvent.cs
- Selection.cs
- XmlSchemaAnnotation.cs
- AssemblyBuilder.cs
- HttpRequestContext.cs
- BitmapPalettes.cs
- SqlVersion.cs
- WindowsStatusBar.cs
- DecoderReplacementFallback.cs
- AbstractExpressions.cs
- Pair.cs
- CorrelationTokenTypeConvertor.cs
- CoTaskMemSafeHandle.cs
- TextPointer.cs
- HyperLink.cs
- WebServiceMethodData.cs
- OledbConnectionStringbuilder.cs
- InternalCache.cs
- TextEffectCollection.cs
- HtmlTableCellCollection.cs
- StructuralObject.cs
- InputMethodStateChangeEventArgs.cs
- CodeIdentifiers.cs
- InvokeAction.cs
- UntrustedRecipientException.cs
- BeginStoryboard.cs
- MsdtcClusterUtils.cs
- SchemaCollectionPreprocessor.cs
- FailedToStartupUIException.cs
- RowUpdatingEventArgs.cs
- Point4D.cs
- XmlWriterTraceListener.cs
- TableLayout.cs
- CodeSnippetStatement.cs
- EUCJPEncoding.cs
- OdbcStatementHandle.cs
- HtmlShimManager.cs
- TemplateBindingExtensionConverter.cs
- Attachment.cs
- TableLayoutPanel.cs
- FreeFormPanel.cs
- ViewBox.cs
- FieldToken.cs
- OdbcTransaction.cs
- ControlValuePropertyAttribute.cs
- LogRecordSequence.cs
- QueryInterceptorAttribute.cs
- ThreadStateException.cs
- ValidatedControlConverter.cs
- MimeBasePart.cs
- AccessViolationException.cs
- KeyboardDevice.cs
- DocumentPage.cs
- WmlPageAdapter.cs
- ConnectionsZone.cs
- EventBookmark.cs
- SelectionService.cs
- Translator.cs
- TransportBindingElement.cs
- HtmlTableRow.cs
- SafeNativeMethods.cs
- FixedSOMTableRow.cs
- ThicknessKeyFrameCollection.cs