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
- CompositionTarget.cs
- RepeatButton.cs
- ExpressionVisitor.cs
- StrokeDescriptor.cs
- CodeDomSerializer.cs
- ShapeTypeface.cs
- TimeSpanHelper.cs
- UniqueIdentifierService.cs
- WebServiceBindingAttribute.cs
- DrawingContextWalker.cs
- WeakEventManager.cs
- ValidatedControlConverter.cs
- GridViewPageEventArgs.cs
- TableItemPattern.cs
- MarkupCompilePass2.cs
- TypeNameConverter.cs
- SctClaimSerializer.cs
- ListViewInsertedEventArgs.cs
- validationstate.cs
- ListBoxAutomationPeer.cs
- GridErrorDlg.cs
- XmlIlTypeHelper.cs
- XhtmlTextWriter.cs
- DictionarySectionHandler.cs
- HttpStreamXmlDictionaryWriter.cs
- WindowsFormsSectionHandler.cs
- XmlSchemaParticle.cs
- RadioButtonBaseAdapter.cs
- RequestQueue.cs
- ExponentialEase.cs
- ServiceHostingEnvironmentSection.cs
- DataGridPagerStyle.cs
- XmlAnyElementAttribute.cs
- PropertyInformationCollection.cs
- GridViewEditEventArgs.cs
- NativeDirectoryServicesQueryAPIs.cs
- ObjectDataSource.cs
- RelatedCurrencyManager.cs
- Brush.cs
- Comparer.cs
- UInt32Converter.cs
- MinMaxParagraphWidth.cs
- Stack.cs
- RowTypeElement.cs
- InternalControlCollection.cs
- newinstructionaction.cs
- OutputCacheSection.cs
- Scene3D.cs
- smtppermission.cs
- NameSpaceExtractor.cs
- FontWeight.cs
- Deflater.cs
- OracleCommandSet.cs
- InfocardExtendedInformationCollection.cs
- SHA512Managed.cs
- ProfileSection.cs
- DataGridViewBand.cs
- _AutoWebProxyScriptWrapper.cs
- MulticastOption.cs
- ToolStripItemImageRenderEventArgs.cs
- InvalidDataContractException.cs
- ToolStripArrowRenderEventArgs.cs
- PhysicalFontFamily.cs
- GraphicsState.cs
- EntityDataSourceQueryBuilder.cs
- ExpressionPrinter.cs
- ReplyAdapterChannelListener.cs
- WindowsUpDown.cs
- DataTableClearEvent.cs
- WsdlEndpointConversionContext.cs
- BuilderPropertyEntry.cs
- Comparer.cs
- ElementAction.cs
- StringBlob.cs
- PairComparer.cs
- SHA256.cs
- BitmapCacheBrush.cs
- lengthconverter.cs
- HttpCookie.cs
- TransformationRules.cs
- RoleManagerSection.cs
- UnSafeCharBuffer.cs
- DbgUtil.cs
- TypeConverters.cs
- ExpressionVisitor.cs
- Duration.cs
- DataGridTextBoxColumn.cs
- MultiSelectRootGridEntry.cs
- ScriptBehaviorDescriptor.cs
- DataListDesigner.cs
- ContentAlignmentEditor.cs
- ObjectNotFoundException.cs
- StringHandle.cs
- StringConcat.cs
- ReferencedCollectionType.cs
- TextTreeTextBlock.cs
- JsonSerializer.cs
- URIFormatException.cs
- AssemblyBuilderData.cs
- CalendarDayButton.cs