Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / 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 : MKarr 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.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Automation Identifiers for Toggle Pattern
//
// History:
// 04/15/2005 : MKarr 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
- ListViewItemSelectionChangedEvent.cs
- Debug.cs
- DataObjectSettingDataEventArgs.cs
- TemplatedAdorner.cs
- OperationCanceledException.cs
- NetworkInformationException.cs
- Viewport2DVisual3D.cs
- handlecollector.cs
- XXXOnTypeBuilderInstantiation.cs
- ShaderRenderModeValidation.cs
- CharEntityEncoderFallback.cs
- KeyConverter.cs
- METAHEADER.cs
- ExpandedWrapper.cs
- OrCondition.cs
- MethodInfo.cs
- ScopedMessagePartSpecification.cs
- ConnectionStringSettingsCollection.cs
- TabPage.cs
- ToolStripPanelRow.cs
- SmiXetterAccessMap.cs
- StringUtil.cs
- WorkflowQueue.cs
- StorageConditionPropertyMapping.cs
- WebServiceParameterData.cs
- PolicyFactory.cs
- ContainerFilterService.cs
- StructuralCache.cs
- FunctionNode.cs
- WindowsNonControl.cs
- DetailsViewInsertEventArgs.cs
- TreeNodeCollectionEditor.cs
- UpnEndpointIdentityExtension.cs
- Baml2006KnownTypes.cs
- SchemaTableOptionalColumn.cs
- ServerValidateEventArgs.cs
- Button.cs
- HttpDebugHandler.cs
- ConsumerConnectionPointCollection.cs
- CodeDomComponentSerializationService.cs
- HttpServerVarsCollection.cs
- Terminate.cs
- InlineUIContainer.cs
- ScriptDescriptor.cs
- ExpressionEditorAttribute.cs
- FontUnit.cs
- BindingExpressionBase.cs
- ClientFormsAuthenticationMembershipProvider.cs
- HttpCookiesSection.cs
- ListViewInsertEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- SQLDecimal.cs
- ForeignConstraint.cs
- XPathAxisIterator.cs
- SimpleTypeResolver.cs
- BamlVersionHeader.cs
- MetricEntry.cs
- PathFigureCollection.cs
- WorkflowViewElement.cs
- PropertyMetadata.cs
- basecomparevalidator.cs
- MemoryRecordBuffer.cs
- HttpServerVarsCollection.cs
- ScrollItemPatternIdentifiers.cs
- DispatcherObject.cs
- Stacktrace.cs
- WinEventWrap.cs
- FormatterServices.cs
- CustomBindingElement.cs
- DetailsViewInsertEventArgs.cs
- StartUpEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- DataRowExtensions.cs
- KeyEventArgs.cs
- SHA1CryptoServiceProvider.cs
- DiscoveryClientChannelFactory.cs
- WriteableOnDemandPackagePart.cs
- DocumentApplicationJournalEntry.cs
- AssemblyFilter.cs
- HostingEnvironmentSection.cs
- ControlValuePropertyAttribute.cs
- FileLevelControlBuilderAttribute.cs
- IPHostEntry.cs
- SqlComparer.cs
- URI.cs
- IpcPort.cs
- DataPagerFieldItem.cs
- CollectionChangeEventArgs.cs
- IteratorFilter.cs
- WebPartConnectVerb.cs
- SystemInformation.cs
- WriteTimeStream.cs
- securestring.cs
- DesignerImageAdapter.cs
- RequestCacheManager.cs
- DropDownButton.cs
- Imaging.cs
- ResourceExpressionBuilder.cs
- X509CertificateChain.cs
- SuppressMergeCheckAttribute.cs