Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / RepeatButtonAutomationPeer.cs / 1305600 / 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; } else { return base.GetPattern(patternInterface); } } 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
- TimelineGroup.cs
- ImmComposition.cs
- PageClientProxyGenerator.cs
- XmlUTF8TextReader.cs
- ClientBuildManager.cs
- PropertyGroupDescription.cs
- ModelVisual3D.cs
- KeyNotFoundException.cs
- RuleElement.cs
- ToolboxBitmapAttribute.cs
- NativeMethods.cs
- EntityConnection.cs
- FieldAccessException.cs
- KeyConstraint.cs
- DbProviderServices.cs
- ProviderConnectionPoint.cs
- XmlSequenceWriter.cs
- Maps.cs
- OAVariantLib.cs
- UInt16.cs
- WebPartUserCapability.cs
- InfoCardTraceRecord.cs
- HttpContextServiceHost.cs
- ListenerElementsCollection.cs
- CrossSiteScriptingValidation.cs
- DataGridRow.cs
- WebRequestModulesSection.cs
- FileDialogPermission.cs
- MenuCommandService.cs
- Listbox.cs
- XmlAnyAttributeAttribute.cs
- AppPool.cs
- FileStream.cs
- ConfigXmlSignificantWhitespace.cs
- ExtensionQuery.cs
- UInt16Storage.cs
- TextDecorations.cs
- RequestCachingSection.cs
- ParallelTimeline.cs
- DataGridViewColumnCollection.cs
- SmtpAuthenticationManager.cs
- WebEventCodes.cs
- ServerIdentity.cs
- WmpBitmapEncoder.cs
- basenumberconverter.cs
- SoapMessage.cs
- RangeValidator.cs
- RotateTransform.cs
- ThreadSafeList.cs
- BindingList.cs
- PeerTransportListenAddressConverter.cs
- LinearGradientBrush.cs
- ButtonBase.cs
- ProxyHelper.cs
- BitmapMetadata.cs
- DateBoldEvent.cs
- XamlGridLengthSerializer.cs
- XmlNullResolver.cs
- SynchronousSendBindingElement.cs
- SqlReorderer.cs
- XmlBoundElement.cs
- InplaceBitmapMetadataWriter.cs
- UseLicense.cs
- BeginSelectCardRequest.cs
- OleDragDropHandler.cs
- TimeSpanStorage.cs
- Int32Collection.cs
- PropertyEmitterBase.cs
- _LocalDataStoreMgr.cs
- CompositionCommandSet.cs
- ZipIOExtraFieldPaddingElement.cs
- XPathException.cs
- TableLayoutPanel.cs
- DataSysAttribute.cs
- PassportIdentity.cs
- SettingsSavedEventArgs.cs
- KeyGesture.cs
- DateTimeSerializationSection.cs
- ControlAdapter.cs
- HwndKeyboardInputProvider.cs
- IdentityModelStringsVersion1.cs
- CellParaClient.cs
- ImageIndexConverter.cs
- ConnectionProviderAttribute.cs
- ReadContentAsBinaryHelper.cs
- QilDataSource.cs
- PEFileEvidenceFactory.cs
- CompoundFileDeflateTransform.cs
- CacheHelper.cs
- PrefixHandle.cs
- DataColumnMappingCollection.cs
- TogglePattern.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- PartitionResolver.cs
- CatalogZoneBase.cs
- ExpressionEvaluator.cs
- ConstructorExpr.cs
- SymDocumentType.cs
- ToolBarOverflowPanel.cs
- TrustSection.cs