Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationTypes / System / Windows / Automation / TogglePatternIdentifiers.cs / 1 / TogglePatternIdentifiers.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Automation Identifiers for Toggle Pattern
//
// History:
// 04/15/2005 : [....] Added
//
//---------------------------------------------------------------------------
using System;
using MS.Internal.Automation;
using System.Runtime.InteropServices;
namespace System.Windows.Automation
{
///
/// The set of states a Toggleable control can be in.
///
[ComVisible(true)]
[Guid("ad7db4af-7166-4478-a402-ad5b77eab2fa")]
#if (NO_INTERNAL_COMPILE_BUG1080665)
internal enum ToggleState
#else
public enum ToggleState
#endif
{
/// Element is Not Activated: unpressed, unchecked, unmarked, etc.
Off,
/// Element is Activated: depressed, checked, marked, etc.
On,
/// Element is in indeterminate state: partially checked, etc.
Indeterminate
}
///
/// Represents UI elements that have a set of states that can by cycled through such as a checkbox, or toggle button.
///
#if (INTERNAL_COMPILE)
internal static class TogglePatternIdentifiers
#else
public static class TogglePatternIdentifiers
#endif
{
//-----------------------------------------------------
//
// Public Constants / Readonly Fields
//
//-----------------------------------------------------
#region Public Constants and Readonly Fields
/// Toggle pattern
public static readonly AutomationPattern Pattern = AutomationPattern.Register(AutomationIdentifierGuids.Toggle_Pattern, "TogglePatternIdentifiers.Pattern");
/// Property ID: ToggleState - Value of a toggleable control, as a ToggleState enum
public static readonly AutomationProperty ToggleStateProperty = AutomationProperty.Register(AutomationIdentifierGuids.Toggle_State_Property, "TogglePatternIdentifiers.ToggleStateProperty");
#endregion Public Constants and Readonly Fields
}
}
// 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
- SynthesizerStateChangedEventArgs.cs
- ConnectionProviderAttribute.cs
- WaitForChangedResult.cs
- UnmanagedHandle.cs
- Root.cs
- DetailsViewPagerRow.cs
- ImagingCache.cs
- ServiceEndpointElement.cs
- SemanticTag.cs
- CompareValidator.cs
- CatalogZoneBase.cs
- QueryContinueDragEventArgs.cs
- AudioDeviceOut.cs
- LongCountAggregationOperator.cs
- TypeUtil.cs
- TreeViewCancelEvent.cs
- DataRowCollection.cs
- WeakKeyDictionary.cs
- StateBag.cs
- PerformanceCounterTraceRecord.cs
- ReflectTypeDescriptionProvider.cs
- AsyncSerializedWorker.cs
- SiteMapNodeItem.cs
- SocketException.cs
- BitmapMetadataBlob.cs
- DesignerHelpers.cs
- ConfigWriter.cs
- CodeDOMUtility.cs
- NameSpaceEvent.cs
- SemaphoreFullException.cs
- ZipIOLocalFileHeader.cs
- TypeUnloadedException.cs
- SafeProcessHandle.cs
- DecimalStorage.cs
- MonitoringDescriptionAttribute.cs
- Odbc32.cs
- Pair.cs
- StateChangeEvent.cs
- StructuredType.cs
- CloseSequence.cs
- CollectionDataContractAttribute.cs
- OleDbParameterCollection.cs
- QueryCoreOp.cs
- SiteOfOriginPart.cs
- RenderDataDrawingContext.cs
- ToolboxComponentsCreatingEventArgs.cs
- BinarySecretSecurityToken.cs
- FontResourceCache.cs
- ThreadExceptionEvent.cs
- HtmlInputCheckBox.cs
- COM2PictureConverter.cs
- HttpPostProtocolImporter.cs
- DataGridRow.cs
- WindowsHyperlink.cs
- InvalidAsynchronousStateException.cs
- CanonicalFormWriter.cs
- InputMethod.cs
- PropertyValueUIItem.cs
- TextBoxBase.cs
- DateTimeStorage.cs
- SoapTypeAttribute.cs
- DecimalConstantAttribute.cs
- CodeCompileUnit.cs
- FontFamilyValueSerializer.cs
- Vector3DAnimationUsingKeyFrames.cs
- GeneralTransform2DTo3D.cs
- FixedFlowMap.cs
- TextElementAutomationPeer.cs
- ChannelBinding.cs
- DivideByZeroException.cs
- ConfigUtil.cs
- XamlParser.cs
- HtmlWindowCollection.cs
- DynamicValidatorEventArgs.cs
- DataGridViewCell.cs
- CommonProperties.cs
- XmlRawWriter.cs
- ClientSettings.cs
- OrderablePartitioner.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WindowHideOrCloseTracker.cs
- ElementHostPropertyMap.cs
- remotingproxy.cs
- DocumentProperties.cs
- DiffuseMaterial.cs
- StsCommunicationException.cs
- TableItemPattern.cs
- ReadWriteObjectLock.cs
- CodeCatchClauseCollection.cs
- UnsafeNativeMethods.cs
- RuleProcessor.cs
- EventHandlerService.cs
- GlyphShapingProperties.cs
- KeyPullup.cs
- X509Utils.cs
- SessionStateUtil.cs
- OverrideMode.cs
- DocumentApplicationJournalEntry.cs
- XomlSerializationHelpers.cs
- InkCanvasSelection.cs