Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrimSurroundingWhitespaceAttribute.cs
- SqlDuplicator.cs
- MimeTypePropertyAttribute.cs
- DataServiceContext.cs
- Size3DValueSerializer.cs
- CompilationSection.cs
- Int64Animation.cs
- LogicalMethodInfo.cs
- DateTimeFormatInfoScanner.cs
- DoubleLink.cs
- WpfWebRequestHelper.cs
- WrapPanel.cs
- WebPartTracker.cs
- OracleNumber.cs
- SchemaNamespaceManager.cs
- SqlMethodTransformer.cs
- GridSplitter.cs
- FontCacheUtil.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ConcurrentBag.cs
- ExpressionList.cs
- InplaceBitmapMetadataWriter.cs
- Int16Animation.cs
- RangeValuePattern.cs
- SequenceDesigner.cs
- FastPropertyAccessor.cs
- DatePicker.cs
- GACMembershipCondition.cs
- ServerIdentity.cs
- ContainerControl.cs
- GridEntry.cs
- SizeFConverter.cs
- _Connection.cs
- TextContainerChangedEventArgs.cs
- WebPartConnectionsEventArgs.cs
- WebPartManager.cs
- ListViewDataItem.cs
- RankException.cs
- Certificate.cs
- AudienceUriMode.cs
- TemplatePropertyEntry.cs
- ProtocolProfile.cs
- CodeIndexerExpression.cs
- SchemaNames.cs
- OuterGlowBitmapEffect.cs
- StrongNameKeyPair.cs
- WindowsAuthenticationEventArgs.cs
- TypeConverter.cs
- ScopelessEnumAttribute.cs
- HiddenFieldPageStatePersister.cs
- DocumentViewerBaseAutomationPeer.cs
- SQLDateTime.cs
- TreeNodeEventArgs.cs
- NumericPagerField.cs
- PropertyRef.cs
- ProfilePropertySettings.cs
- recordstate.cs
- IEnumerable.cs
- URIFormatException.cs
- TextOptions.cs
- Canvas.cs
- DeviceOverridableAttribute.cs
- StringToken.cs
- WindowsTitleBar.cs
- DynamicRendererThreadManager.cs
- OleDbDataAdapter.cs
- ConsoleCancelEventArgs.cs
- FontStretch.cs
- shaper.cs
- SoapAttributeOverrides.cs
- QueryableDataSourceHelper.cs
- CacheSection.cs
- MemberJoinTreeNode.cs
- DesignerActionTextItem.cs
- CodeDelegateInvokeExpression.cs
- CookieParameter.cs
- DoubleKeyFrameCollection.cs
- ZipIOExtraField.cs
- CacheEntry.cs
- GeometryDrawing.cs
- FontCacheLogic.cs
- DataGridPagingPage.cs
- ImageIndexConverter.cs
- InvalidWMPVersionException.cs
- PhoneCall.cs
- DrawingImage.cs
- InputScopeManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlByteStreamReader.cs
- DeadCharTextComposition.cs
- ButtonFlatAdapter.cs
- Aggregates.cs
- UshortList2.cs
- Encoder.cs
- DocumentSequence.cs
- RankException.cs
- PageSettings.cs
- MimeMultiPart.cs
- BitmapEffectGeneralTransform.cs
- AppLevelCompilationSectionCache.cs