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
- EntityCollection.cs
- TextPointerBase.cs
- Highlights.cs
- HiddenField.cs
- XmlSchemaImporter.cs
- ViewCellRelation.cs
- GroupBoxRenderer.cs
- MimeReflector.cs
- _NegoState.cs
- XDRSchema.cs
- sitestring.cs
- EffectiveValueEntry.cs
- ObjectDataSourceDisposingEventArgs.cs
- CopyNamespacesAction.cs
- GradientStop.cs
- IImplicitResourceProvider.cs
- ExpressionPrinter.cs
- TemplateBamlTreeBuilder.cs
- GuidelineSet.cs
- WsdlInspector.cs
- EntityDataSourceState.cs
- RelationshipNavigation.cs
- ComponentChangingEvent.cs
- ErrorProvider.cs
- XPathNodePointer.cs
- GZipDecoder.cs
- SrgsRule.cs
- MailWebEventProvider.cs
- DataGridTablesFactory.cs
- InvalidCastException.cs
- CreateSequenceResponse.cs
- Preprocessor.cs
- TextSpanModifier.cs
- EpmContentDeSerializerBase.cs
- HttpCachePolicyWrapper.cs
- BufferedMessageData.cs
- ProxyWebPartManager.cs
- MemberMaps.cs
- DocumentDesigner.cs
- ItemMap.cs
- CodeTypeOfExpression.cs
- ValidationUtility.cs
- ItemsPanelTemplate.cs
- AccessText.cs
- EmptyEnumerator.cs
- LookupBindingPropertiesAttribute.cs
- StringResourceManager.cs
- MarshalDirectiveException.cs
- MULTI_QI.cs
- InstanceDataCollection.cs
- DataViewSettingCollection.cs
- CommandLibraryHelper.cs
- SpeechAudioFormatInfo.cs
- DataGridViewColumnEventArgs.cs
- SQLCharsStorage.cs
- SafeFileMappingHandle.cs
- UIElementParaClient.cs
- DataGridrowEditEndingEventArgs.cs
- StateChangeEvent.cs
- ContainerVisual.cs
- ByteStorage.cs
- PageThemeCodeDomTreeGenerator.cs
- Double.cs
- DerivedKeySecurityToken.cs
- CodeExpressionStatement.cs
- dtdvalidator.cs
- XamlLoadErrorInfo.cs
- SemaphoreSecurity.cs
- EntityDataSourceContainerNameItem.cs
- DependencyPropertyValueSerializer.cs
- _ConnectionGroup.cs
- SqlRowUpdatedEvent.cs
- FragmentQueryKB.cs
- WinFormsSecurity.cs
- ApplicationInfo.cs
- TableItemProviderWrapper.cs
- ServiceSecurityAuditBehavior.cs
- DataServiceConfiguration.cs
- TagPrefixInfo.cs
- NativeMethods.cs
- MethodCallTranslator.cs
- HttpCacheParams.cs
- BitmapPalette.cs
- TypeTypeConverter.cs
- SubqueryRules.cs
- SchemaConstraints.cs
- HandlerWithFactory.cs
- ProfileService.cs
- SharedStatics.cs
- BoundingRectTracker.cs
- DependencyObjectPropertyDescriptor.cs
- DesignerVerbCollection.cs
- Misc.cs
- SizeConverter.cs
- _Win32.cs
- DbParameterCollectionHelper.cs
- Button.cs
- TransformPatternIdentifiers.cs
- DeviceContext2.cs
- D3DImage.cs