Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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. 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
- TableLayoutSettingsTypeConverter.cs
- SqlServices.cs
- XmlNodeComparer.cs
- StreamGeometryContext.cs
- mediaeventargs.cs
- HelpEvent.cs
- StateItem.cs
- _UriSyntax.cs
- ProviderSettingsCollection.cs
- NetDataContractSerializer.cs
- GlobalItem.cs
- GridViewColumnHeader.cs
- CardSpaceSelector.cs
- WithParamAction.cs
- SafeNativeMethodsCLR.cs
- AuditLog.cs
- UnsafeNativeMethods.cs
- CustomAttributeFormatException.cs
- BasicAsyncResult.cs
- ByteConverter.cs
- KeyTimeConverter.cs
- KoreanCalendar.cs
- RoleManagerEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- FileDetails.cs
- InheritanceRules.cs
- WebPartsPersonalization.cs
- COAUTHINFO.cs
- WebPartUtil.cs
- Style.cs
- OperatingSystem.cs
- PropertyKey.cs
- Privilege.cs
- COM2TypeInfoProcessor.cs
- NetPipeSection.cs
- EventRecord.cs
- NetMsmqSecurityElement.cs
- WizardStepBase.cs
- BindingExpressionUncommonField.cs
- JapaneseLunisolarCalendar.cs
- DataTableCollection.cs
- ModuleElement.cs
- WorkflowQueuingService.cs
- KoreanLunisolarCalendar.cs
- Translator.cs
- DocumentViewerConstants.cs
- FormsAuthenticationEventArgs.cs
- FacetDescriptionElement.cs
- RegisteredHiddenField.cs
- ModelItemDictionaryImpl.cs
- Metafile.cs
- HorizontalAlignConverter.cs
- CopyAction.cs
- Matrix3DStack.cs
- PrintingPermission.cs
- ReadOnlyPropertyMetadata.cs
- WebPartTransformerCollection.cs
- ChangeBlockUndoRecord.cs
- Tile.cs
- DesignerDeviceConfig.cs
- GlobalizationSection.cs
- DataTemplateKey.cs
- WebPartEventArgs.cs
- FolderLevelBuildProvider.cs
- FileDetails.cs
- RedBlackList.cs
- SectionVisual.cs
- ObjectContext.cs
- ToolStripDropDownButton.cs
- XmlSubtreeReader.cs
- CustomError.cs
- PeerCredentialElement.cs
- DriveNotFoundException.cs
- AspNetCompatibilityRequirementsAttribute.cs
- XsltContext.cs
- _IPv6Address.cs
- ObjectStateManager.cs
- BinaryUtilClasses.cs
- ConfigurationValidatorAttribute.cs
- ProviderMetadataCachedInformation.cs
- IResourceProvider.cs
- MailMessage.cs
- TemplateComponentConnector.cs
- SmtpNtlmAuthenticationModule.cs
- CharacterBuffer.cs
- RSAOAEPKeyExchangeFormatter.cs
- BooleanFunctions.cs
- ComponentDispatcherThread.cs
- EventsTab.cs
- SizeConverter.cs
- IntAverageAggregationOperator.cs
- TemplateControlBuildProvider.cs
- Vector3DAnimation.cs
- CompoundFileDeflateTransform.cs
- _SslStream.cs
- _PooledStream.cs
- SqlXml.cs
- PropertyDescriptorGridEntry.cs
- DesignerVerb.cs
- FamilyMap.cs