Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ContextMenuAutomationPeer.cs / 1305600 / ContextMenuAutomationPeer.cs
using System;
using System.Collections;
using System.Collections.Generic;
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 ContextMenuAutomationPeer : FrameworkElementAutomationPeer
{
///
public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
{
}
///
override protected string GetClassNameCore()
{
return "ContextMenu";
}
///
override protected AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.Menu;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections;
using System.Collections.Generic;
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 ContextMenuAutomationPeer : FrameworkElementAutomationPeer
{
///
public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
{
}
///
override protected string GetClassNameCore()
{
return "ContextMenu";
}
///
override protected AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.Menu;
}
}
}
// 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
- Pen.cs
- TypedOperationInfo.cs
- DecimalAnimationBase.cs
- BitmapMetadataEnumerator.cs
- TemplateControlCodeDomTreeGenerator.cs
- DrawListViewItemEventArgs.cs
- HeaderElement.cs
- AsymmetricSecurityProtocolFactory.cs
- ObjectHandle.cs
- PhysicalOps.cs
- SqlDataRecord.cs
- Mouse.cs
- DbInsertCommandTree.cs
- ResourceProviderFactory.cs
- ControlAdapter.cs
- TreeNodeBindingCollection.cs
- EmptyCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- HttpVersion.cs
- CodeDirectiveCollection.cs
- ColumnMapTranslator.cs
- AsyncPostBackErrorEventArgs.cs
- DoubleConverter.cs
- ExtensibleClassFactory.cs
- CfgArc.cs
- EmptyReadOnlyDictionaryInternal.cs
- HashCodeCombiner.cs
- HttpResponseHeader.cs
- WindowsGraphicsCacheManager.cs
- ElementUtil.cs
- EventLogTraceListener.cs
- TextTreeExtractElementUndoUnit.cs
- PageScaling.cs
- CacheAxisQuery.cs
- SAPIEngineTypes.cs
- ParseChildrenAsPropertiesAttribute.cs
- XPathAxisIterator.cs
- CodeNamespaceImportCollection.cs
- ServiceParser.cs
- Wizard.cs
- QilFunction.cs
- IOException.cs
- Tracking.cs
- TextEffectResolver.cs
- FormView.cs
- MimeTypeMapper.cs
- DriveNotFoundException.cs
- GridViewCancelEditEventArgs.cs
- SafeArrayRankMismatchException.cs
- RSACryptoServiceProvider.cs
- WindowsListViewGroupSubsetLink.cs
- AssemblyHash.cs
- HwndSourceKeyboardInputSite.cs
- TypeGeneratedEventArgs.cs
- AuthenticatingEventArgs.cs
- MexHttpBindingElement.cs
- PictureBox.cs
- EventLogPermission.cs
- mediaclock.cs
- TimeSpanFormat.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ZipIORawDataFileBlock.cs
- XmlSchemaValidator.cs
- CodeSnippetStatement.cs
- TraceHwndHost.cs
- DbTransaction.cs
- CatalogZoneBase.cs
- DataSourceXmlElementAttribute.cs
- Assembly.cs
- PeerHelpers.cs
- COM2Properties.cs
- WebExceptionStatus.cs
- ProcessThreadCollection.cs
- DrawTreeNodeEventArgs.cs
- DbExpressionVisitor_TResultType.cs
- TempFiles.cs
- _FtpControlStream.cs
- TimeSpanConverter.cs
- AnnotationService.cs
- MetafileHeader.cs
- RequestContext.cs
- DictionaryBase.cs
- HttpPostProtocolReflector.cs
- BitmapEffect.cs
- AppSettingsExpressionEditor.cs
- Transform3D.cs
- PolicyVersion.cs
- ProbeMatchesCD1.cs
- PathFigureCollection.cs
- NavigatorOutput.cs
- WebServiceTypeData.cs
- ConvertersCollection.cs
- RoutedEventHandlerInfo.cs
- Touch.cs
- BamlLocalizableResourceKey.cs
- DependencyObjectProvider.cs
- DbParameterCollectionHelper.cs
- IndicCharClassifier.cs
- MetadataArtifactLoaderComposite.cs
- StateInitializationDesigner.cs