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
- EventSetter.cs
- ReferenceEqualityComparer.cs
- NamespaceEmitter.cs
- IInstanceTable.cs
- SequentialActivityDesigner.cs
- EventManager.cs
- DropSource.cs
- DataGridViewBand.cs
- XmlSchemaCompilationSettings.cs
- SmtpFailedRecipientException.cs
- MinMaxParagraphWidth.cs
- BitConverter.cs
- GPRECTF.cs
- NamespaceInfo.cs
- PropertyMapper.cs
- Encoding.cs
- TextViewSelectionProcessor.cs
- SmiRequestExecutor.cs
- SvcMapFileLoader.cs
- ArgumentOutOfRangeException.cs
- infer.cs
- DataComponentGenerator.cs
- TrustManager.cs
- OleDbCommandBuilder.cs
- SlotInfo.cs
- FormsAuthenticationTicket.cs
- ImageProxy.cs
- ConnectionStringsExpressionBuilder.cs
- OperationAbortedException.cs
- MessageTransmitTraceRecord.cs
- DecoderFallbackWithFailureFlag.cs
- CheckBox.cs
- AsyncInvokeContext.cs
- SafeHandles.cs
- ProgressBarRenderer.cs
- SerializationStore.cs
- AmbientValueAttribute.cs
- SaveFileDialog.cs
- PackageRelationshipSelector.cs
- DesignerTextViewAdapter.cs
- Grant.cs
- PersonalizableTypeEntry.cs
- InternalConfigSettingsFactory.cs
- DynamicScriptObject.cs
- EventTrigger.cs
- dsa.cs
- ScriptReferenceEventArgs.cs
- SoapSchemaImporter.cs
- TextTreeDeleteContentUndoUnit.cs
- IPGlobalProperties.cs
- GeneralTransformGroup.cs
- ServiceOperationInvoker.cs
- FixedSOMPageElement.cs
- AllMembershipCondition.cs
- HttpConfigurationContext.cs
- TextProviderWrapper.cs
- SmtpAuthenticationManager.cs
- PointConverter.cs
- Drawing.cs
- DataBoundControlActionList.cs
- Control.cs
- ConfigurationSectionCollection.cs
- ResXFileRef.cs
- HtmlHead.cs
- MissingSatelliteAssemblyException.cs
- OptimalBreakSession.cs
- FixedSOMLineCollection.cs
- XNodeValidator.cs
- FloaterParagraph.cs
- FormViewActionList.cs
- DataGridPagerStyle.cs
- ConsumerConnectionPoint.cs
- PassportAuthenticationModule.cs
- DelegatingHeader.cs
- objectquery_tresulttype.cs
- XmlTypeMapping.cs
- AspNetHostingPermission.cs
- EndEvent.cs
- CallbackWrapper.cs
- MessageQueue.cs
- DateTimePicker.cs
- ScriptReferenceBase.cs
- TracePayload.cs
- SqlProvider.cs
- AnnotationComponentManager.cs
- EditCommandColumn.cs
- CodeRegionDirective.cs
- DoubleCollectionValueSerializer.cs
- Keyboard.cs
- DrawingDrawingContext.cs
- HttpModulesSection.cs
- PreDigestedSignedInfo.cs
- lengthconverter.cs
- CapabilitiesUse.cs
- ItemContainerGenerator.cs
- SortExpressionBuilder.cs
- ListSortDescriptionCollection.cs
- RowToFieldTransformer.cs
- ToolStripHighContrastRenderer.cs
- LinqDataSource.cs