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
- Frame.cs
- ProfileGroupSettings.cs
- EmptyControlCollection.cs
- OdbcReferenceCollection.cs
- XmlSerializationGeneratedCode.cs
- XPathSelectionIterator.cs
- UrlMappingCollection.cs
- DataGridViewHitTestInfo.cs
- SimpleHandlerBuildProvider.cs
- ListSortDescriptionCollection.cs
- HttpCacheParams.cs
- ServiceDurableInstance.cs
- TextServicesProperty.cs
- MLangCodePageEncoding.cs
- PanelContainerDesigner.cs
- SqlDataSourceCache.cs
- XmlWellformedWriter.cs
- LexicalChunk.cs
- RightsManagementPermission.cs
- OutputScopeManager.cs
- HttpRawResponse.cs
- QilValidationVisitor.cs
- EDesignUtil.cs
- FixedHighlight.cs
- BitmapEffectDrawing.cs
- DbXmlEnabledProviderManifest.cs
- MissingFieldException.cs
- DataRelationCollection.cs
- AttributeQuery.cs
- DbProviderManifest.cs
- ConfigurationFileMap.cs
- RelationshipEndMember.cs
- ValueType.cs
- ColumnClickEvent.cs
- RoleGroup.cs
- ipaddressinformationcollection.cs
- DetailsViewRow.cs
- PauseStoryboard.cs
- TreeView.cs
- CodeTypeOfExpression.cs
- ServiceAuthorizationManager.cs
- ApplicationServiceManager.cs
- ExpressionValueEditor.cs
- TableCellCollection.cs
- Interop.cs
- FontFamily.cs
- DesignTimeData.cs
- DummyDataSource.cs
- AxImporter.cs
- MimeParameter.cs
- FixUpCollection.cs
- OdbcConnection.cs
- AmbientValueAttribute.cs
- UserMapPath.cs
- ValueProviderWrapper.cs
- GlobalDataBindingHandler.cs
- ContextMarshalException.cs
- SqlServer2KCompatibilityCheck.cs
- BamlLocalizableResourceKey.cs
- IisTraceWebEventProvider.cs
- _OSSOCK.cs
- ModuleBuilder.cs
- AuthStoreRoleProvider.cs
- SqlBuilder.cs
- ValueExpressions.cs
- ExpressionBuilder.cs
- StorageMappingItemCollection.cs
- AssemblyEvidenceFactory.cs
- SystemEvents.cs
- IgnoreFileBuildProvider.cs
- ParallelTimeline.cs
- DBSchemaTable.cs
- FontNamesConverter.cs
- Simplifier.cs
- FactoryGenerator.cs
- SplitterCancelEvent.cs
- ComponentResourceKey.cs
- StringReader.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Knowncolors.cs
- ScrollContentPresenter.cs
- CodeCompiler.cs
- TranslateTransform3D.cs
- UnsafeNativeMethods.cs
- HtmlGenericControl.cs
- TextStore.cs
- WindowsSpinner.cs
- TextRenderer.cs
- TreeIterator.cs
- ScopeCompiler.cs
- BooleanKeyFrameCollection.cs
- Model3DCollection.cs
- RegisteredHiddenField.cs
- FormsAuthentication.cs
- MatrixTransform3D.cs
- CustomAttributeSerializer.cs
- XamlFigureLengthSerializer.cs
- CustomTypeDescriptor.cs
- CodeGenerator.cs
- ColumnResizeUndoUnit.cs