Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TypeConvertions.cs
- SharedUtils.cs
- QilGenerator.cs
- ObjectViewQueryResultData.cs
- EntityStoreSchemaFilterEntry.cs
- ResourcePool.cs
- SignatureSummaryDialog.cs
- FragmentQueryProcessor.cs
- Matrix3D.cs
- OleDbParameter.cs
- FocusChangedEventArgs.cs
- MatrixAnimationUsingPath.cs
- MethodCallTranslator.cs
- ProxyWebPart.cs
- TypePropertyEditor.cs
- CodeNamespace.cs
- MenuRendererClassic.cs
- DocumentCollection.cs
- EntityProxyFactory.cs
- CategoryNameCollection.cs
- EventLogInternal.cs
- DataControlFieldCollection.cs
- PersonalizationProviderCollection.cs
- XamlInt32CollectionSerializer.cs
- NetworkStream.cs
- messageonlyhwndwrapper.cs
- DataControlPagerLinkButton.cs
- ControlEvent.cs
- securitycriticaldata.cs
- SettingsAttributes.cs
- UnsafeNativeMethodsTablet.cs
- IteratorFilter.cs
- RetriableClipboard.cs
- DataControlImageButton.cs
- SchemaSetCompiler.cs
- FileDialogPermission.cs
- CheckPair.cs
- Deserializer.cs
- AssemblyCollection.cs
- TreeBuilderXamlTranslator.cs
- MessageUtil.cs
- IssuanceLicense.cs
- RegisteredDisposeScript.cs
- UnsafeNativeMethods.cs
- TagNameToTypeMapper.cs
- ScrollItemPattern.cs
- DesignerAttributeInfo.cs
- MasterPageParser.cs
- DrawingGroupDrawingContext.cs
- OperatingSystem.cs
- ExtensionWindow.cs
- BaseTemplateBuildProvider.cs
- SecurityException.cs
- WebServiceFaultDesigner.cs
- TextServicesContext.cs
- UriSection.cs
- ProxyManager.cs
- ReceiveMessageContent.cs
- IndentedWriter.cs
- Help.cs
- StringDictionaryWithComparer.cs
- TextDecorationUnitValidation.cs
- SafeRightsManagementSessionHandle.cs
- xmlglyphRunInfo.cs
- DataTemplateSelector.cs
- FilterableAttribute.cs
- ConstraintCollection.cs
- StringExpressionSet.cs
- QuaternionRotation3D.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ClientConfigurationSystem.cs
- Encoder.cs
- _AutoWebProxyScriptWrapper.cs
- OSFeature.cs
- Scheduler.cs
- OdbcPermission.cs
- XmlSchemaSimpleContentExtension.cs
- MetadataItemEmitter.cs
- Transform.cs
- Security.cs
- RangeValidator.cs
- EntitySetBaseCollection.cs
- SizeFConverter.cs
- ScriptReferenceEventArgs.cs
- __FastResourceComparer.cs
- InstanceContextManager.cs
- ApplicationException.cs
- HwndSourceParameters.cs
- CodeEntryPointMethod.cs
- WindowsStreamSecurityBindingElement.cs
- EventProviderWriter.cs
- CompositeActivityTypeDescriptor.cs
- FragmentQuery.cs
- OrderPreservingPipeliningMergeHelper.cs
- _Semaphore.cs
- HtmlTitle.cs
- SpeechRecognizer.cs
- WorkItem.cs
- ResourceDisplayNameAttribute.cs
- sqlcontext.cs