Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PreApplicationStartMethodAttribute.cs
- GridViewSortEventArgs.cs
- LassoSelectionBehavior.cs
- ByteAnimation.cs
- NameValueFileSectionHandler.cs
- Graphics.cs
- CompModSwitches.cs
- OleAutBinder.cs
- EventLogPermissionEntry.cs
- PropertyItem.cs
- SecurityKeyEntropyMode.cs
- BrowserCapabilitiesCompiler.cs
- SoapIncludeAttribute.cs
- MemberInfoSerializationHolder.cs
- ObjectConverter.cs
- EntityProviderFactory.cs
- CertificateManager.cs
- metadatamappinghashervisitor.cs
- TraceContextRecord.cs
- LinkedResourceCollection.cs
- RecordsAffectedEventArgs.cs
- AssociationTypeEmitter.cs
- DescendantBaseQuery.cs
- IntMinMaxAggregationOperator.cs
- Composition.cs
- Geometry3D.cs
- Utils.cs
- COM2IDispatchConverter.cs
- RightNameExpirationInfoPair.cs
- Timer.cs
- UInt64.cs
- MasterPageParser.cs
- ReflectionTypeLoadException.cs
- CompilationUtil.cs
- XmlSchemaNotation.cs
- ServiceNameCollection.cs
- CloudCollection.cs
- TextFragmentEngine.cs
- ExtentJoinTreeNode.cs
- ProtocolViolationException.cs
- DocumentPage.cs
- WebBrowserEvent.cs
- recordstatescratchpad.cs
- ColumnHeaderConverter.cs
- PasswordPropertyTextAttribute.cs
- DataServiceException.cs
- TrackingMemoryStreamFactory.cs
- DeferredElementTreeState.cs
- Error.cs
- SystemColors.cs
- X509ChainPolicy.cs
- PageContentAsyncResult.cs
- CharacterBuffer.cs
- CodeEntryPointMethod.cs
- Subset.cs
- VarInfo.cs
- List.cs
- UnsafeNativeMethods.cs
- XmlAttributeCollection.cs
- DesignerAutoFormatCollection.cs
- GraphicsPath.cs
- MonthCalendar.cs
- ConfigurationManagerInternal.cs
- SqlTypesSchemaImporter.cs
- LoginView.cs
- TrackingRecordPreFilter.cs
- OrderByQueryOptionExpression.cs
- ProxyWebPartConnectionCollection.cs
- EventOpcode.cs
- Lasso.cs
- MasterPageParser.cs
- KeyFrames.cs
- WebEncodingValidator.cs
- TransportSecurityProtocol.cs
- StrongNamePublicKeyBlob.cs
- PointAnimationUsingPath.cs
- EnumDataContract.cs
- ControlHelper.cs
- Base64Decoder.cs
- ArrayListCollectionBase.cs
- BitmapEffectOutputConnector.cs
- SQLByte.cs
- FrameAutomationPeer.cs
- UndirectedGraph.cs
- DbConnectionOptions.cs
- WebPartConnectionsEventArgs.cs
- SchemaCollectionPreprocessor.cs
- MulticastNotSupportedException.cs
- PathFigureCollection.cs
- TextMetrics.cs
- OutputScope.cs
- DashStyles.cs
- ExtendedPropertyDescriptor.cs
- DispatcherHooks.cs
- AttachedPropertyBrowsableAttribute.cs
- StreamResourceInfo.cs
- ObjectDataSourceEventArgs.cs
- TextModifierScope.cs
- ContentElementAutomationPeer.cs
- HttpClientCertificate.cs