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
- ProfileSettings.cs
- FormattedTextSymbols.cs
- CompleteWizardStep.cs
- ResourceAttributes.cs
- Vector3DAnimationBase.cs
- HttpApplicationFactory.cs
- ReflectionUtil.cs
- RTLAwareMessageBox.cs
- Timer.cs
- HtmlDocument.cs
- PropertyFilterAttribute.cs
- SessionState.cs
- DBCSCodePageEncoding.cs
- NotifyIcon.cs
- TrustManager.cs
- ObjectKeyFrameCollection.cs
- ListView.cs
- AutomationPropertyInfo.cs
- Int32Converter.cs
- ResourcePermissionBaseEntry.cs
- Vector3dCollection.cs
- PrintPreviewControl.cs
- LayoutUtils.cs
- QueryContinueDragEvent.cs
- WebBrowserEvent.cs
- ProvideValueServiceProvider.cs
- ValidationEventArgs.cs
- EventLogEntryCollection.cs
- ListSortDescription.cs
- _UriTypeConverter.cs
- ProviderIncompatibleException.cs
- XmlWrappingReader.cs
- XmlC14NWriter.cs
- GetPageNumberCompletedEventArgs.cs
- DocumentApplicationJournalEntryEventArgs.cs
- ScrollChrome.cs
- AggregateNode.cs
- RNGCryptoServiceProvider.cs
- ErrorFormatter.cs
- SimpleParser.cs
- QueryStringParameter.cs
- HostProtectionException.cs
- GAC.cs
- GetPageCompletedEventArgs.cs
- PropertyEmitter.cs
- ConfigDefinitionUpdates.cs
- DescendantQuery.cs
- OleCmdHelper.cs
- GuidelineSet.cs
- PropertyRecord.cs
- CalendarDateRange.cs
- System.Data_BID.cs
- CategoryAttribute.cs
- StylusPointPropertyUnit.cs
- ScriptingWebServicesSectionGroup.cs
- LocalBuilder.cs
- CardSpaceSelector.cs
- EncryptedData.cs
- RelationshipWrapper.cs
- XmlSchemaSubstitutionGroup.cs
- Sql8ConformanceChecker.cs
- XmlArrayAttribute.cs
- SynchronizedPool.cs
- StylusShape.cs
- Calendar.cs
- TabControlAutomationPeer.cs
- HelpFileFileNameEditor.cs
- Columns.cs
- XmlComment.cs
- OneOfScalarConst.cs
- FileChangesMonitor.cs
- TimeManager.cs
- XmlSchemas.cs
- SingleObjectCollection.cs
- AddInAttribute.cs
- Condition.cs
- Panel.cs
- KeySplineConverter.cs
- InvalidWorkflowException.cs
- StreamAsIStream.cs
- ContractListAdapter.cs
- DictionarySectionHandler.cs
- ErrorProvider.cs
- ComplexObject.cs
- AnimationClock.cs
- Internal.cs
- ObjectAnimationBase.cs
- HebrewNumber.cs
- WebPartPersonalization.cs
- AnimationException.cs
- BooleanStorage.cs
- AssemblySettingAttributes.cs
- DataGridViewCellPaintingEventArgs.cs
- ObjectContext.cs
- PointAnimation.cs
- ExceptionUtil.cs
- MaterialCollection.cs
- CqlErrorHelper.cs
- XmlCollation.cs
- XmlDataCollection.cs