Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / UIAutomationTypes / System / Windows / Automation / WindowPatternIdentifiers.cs / 1 / WindowPatternIdentifiers.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Automation Identifiers for Window Pattern
//
// History:
// 04/15/2005 : MKarr Added
//
//---------------------------------------------------------------------------
using System;
using MS.Internal.Automation;
using System.Runtime.InteropServices;
namespace System.Windows.Automation
{
// Disable warning for obsolete types. These are scheduled to be removed in M8.2 so
// only need the warning to come out for components outside of APT.
#pragma warning disable 0618
///
/// following the Office and HTML definition of WindowState.
///
[ComVisible(true)]
[Guid("fdc8f176-aed2-477a-8c89-ea04cc5f278d")]
#if (NO_INTERNAL_COMPILE_BUG1080665)
internal enum WindowVisualState
#else
public enum WindowVisualState
#endif
{
/// window is normal
Normal,
/// window is maximized
Maximized,
/// window is minimized
Minimized
}
///
/// The current state of the window for user interaction
///
[ComVisible(true)]
[Guid("65101cc7-7904-408e-87a7-8c6dbd83a18b")]
#if (NO_INTERNAL_COMPILE_BUG1080665)
internal enum WindowInteractionState
#else
public enum WindowInteractionState
#endif
{
///
/// window is running. This does not guarantee that the window ready for user interaction,
/// nor does it guarantee the windows is not "not responding".
///
Running,
/// window is closing
Closing,
/// window is ready for the user to interact with it
ReadyForUserInteraction,
/// window is block by a modal window.
BlockedByModalWindow,
/// window is not responding
NotResponding
}
///wrapper class for Window pattern
#if (INTERNAL_COMPILE)
internal static class WindowPatternIdentifiers
#else
public static class WindowPatternIdentifiers
#endif
{
//-----------------------------------------------------
//
// Public Constants / Readonly Fields
//
//-----------------------------------------------------
#region Public Constants and Readonly Fields
/// Returns the Window pattern identifier
public static readonly AutomationPattern Pattern = AutomationPattern.Register(AutomationIdentifierGuids.Window_Pattern, "WindowPatternIdentifiers.Pattern");
/// Property ID: CanMaximize -
public static readonly AutomationProperty CanMaximizeProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_CanMaximize_Property, "WindowPatternIdentifiers.CanMaximizeProperty");
/// Property ID: CanMinimize -
public static readonly AutomationProperty CanMinimizeProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_CanMinimize_Property, "WindowPatternIdentifiers.CanMinimizeProperty");
/// Property ID: IsModal - Is this is a modal window
public static readonly AutomationProperty IsModalProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_IsModal_Property, "WindowPatternIdentifiers.IsModalProperty");
/// Property ID: WindowVisualState - Is the Window Maximized, Minimized, or Normal (aka restored)
public static readonly AutomationProperty WindowVisualStateProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_VisualState_Property, "WindowPatternIdentifiers.WindowVisualStateProperty");
/// Property ID: WindowInteractionState - Is the Window Closing, ReadyForUserInteraction, BlockedByModalWindow or NotResponding.
public static readonly AutomationProperty WindowInteractionStateProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_InteractionState_Property, "WindowPatternIdentifiers.WindowInteractionStateProperty");
/// Property ID: - This window is always on top
public static readonly AutomationProperty IsTopmostProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_IsTopmost_Property, "WindowPatternIdentifiers.IsTopmostProperty");
/// Event ID: WindowOpened - Immediately after opening the window - ApplicationWindows or Window Status is not guarantee to be: ReadyForUserInteraction
public static readonly AutomationEvent WindowOpenedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Window_Opened_Event, "WindowPatternIdentifiers.WindowOpenedProperty");
/// Event ID: WindowClosed - Immediately after closing the window
public static readonly AutomationEvent WindowClosedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Window_Closed_Event, "WindowPatternIdentifiers.WindowClosedProperty");
#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 Window Pattern
//
// History:
// 04/15/2005 : MKarr Added
//
//---------------------------------------------------------------------------
using System;
using MS.Internal.Automation;
using System.Runtime.InteropServices;
namespace System.Windows.Automation
{
// Disable warning for obsolete types. These are scheduled to be removed in M8.2 so
// only need the warning to come out for components outside of APT.
#pragma warning disable 0618
///
/// following the Office and HTML definition of WindowState.
///
[ComVisible(true)]
[Guid("fdc8f176-aed2-477a-8c89-ea04cc5f278d")]
#if (NO_INTERNAL_COMPILE_BUG1080665)
internal enum WindowVisualState
#else
public enum WindowVisualState
#endif
{
/// window is normal
Normal,
/// window is maximized
Maximized,
/// window is minimized
Minimized
}
///
/// The current state of the window for user interaction
///
[ComVisible(true)]
[Guid("65101cc7-7904-408e-87a7-8c6dbd83a18b")]
#if (NO_INTERNAL_COMPILE_BUG1080665)
internal enum WindowInteractionState
#else
public enum WindowInteractionState
#endif
{
///
/// window is running. This does not guarantee that the window ready for user interaction,
/// nor does it guarantee the windows is not "not responding".
///
Running,
/// window is closing
Closing,
/// window is ready for the user to interact with it
ReadyForUserInteraction,
/// window is block by a modal window.
BlockedByModalWindow,
/// window is not responding
NotResponding
}
///wrapper class for Window pattern
#if (INTERNAL_COMPILE)
internal static class WindowPatternIdentifiers
#else
public static class WindowPatternIdentifiers
#endif
{
//-----------------------------------------------------
//
// Public Constants / Readonly Fields
//
//-----------------------------------------------------
#region Public Constants and Readonly Fields
/// Returns the Window pattern identifier
public static readonly AutomationPattern Pattern = AutomationPattern.Register(AutomationIdentifierGuids.Window_Pattern, "WindowPatternIdentifiers.Pattern");
/// Property ID: CanMaximize -
public static readonly AutomationProperty CanMaximizeProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_CanMaximize_Property, "WindowPatternIdentifiers.CanMaximizeProperty");
/// Property ID: CanMinimize -
public static readonly AutomationProperty CanMinimizeProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_CanMinimize_Property, "WindowPatternIdentifiers.CanMinimizeProperty");
/// Property ID: IsModal - Is this is a modal window
public static readonly AutomationProperty IsModalProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_IsModal_Property, "WindowPatternIdentifiers.IsModalProperty");
/// Property ID: WindowVisualState - Is the Window Maximized, Minimized, or Normal (aka restored)
public static readonly AutomationProperty WindowVisualStateProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_VisualState_Property, "WindowPatternIdentifiers.WindowVisualStateProperty");
/// Property ID: WindowInteractionState - Is the Window Closing, ReadyForUserInteraction, BlockedByModalWindow or NotResponding.
public static readonly AutomationProperty WindowInteractionStateProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_InteractionState_Property, "WindowPatternIdentifiers.WindowInteractionStateProperty");
/// Property ID: - This window is always on top
public static readonly AutomationProperty IsTopmostProperty = AutomationProperty.Register(AutomationIdentifierGuids.Window_IsTopmost_Property, "WindowPatternIdentifiers.IsTopmostProperty");
/// Event ID: WindowOpened - Immediately after opening the window - ApplicationWindows or Window Status is not guarantee to be: ReadyForUserInteraction
public static readonly AutomationEvent WindowOpenedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Window_Opened_Event, "WindowPatternIdentifiers.WindowOpenedProperty");
/// Event ID: WindowClosed - Immediately after closing the window
public static readonly AutomationEvent WindowClosedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Window_Closed_Event, "WindowPatternIdentifiers.WindowClosedProperty");
#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
- PeerEndPoint.cs
- FormParameter.cs
- IgnoreSectionHandler.cs
- Synchronization.cs
- SpecularMaterial.cs
- ProcessModelInfo.cs
- GPRECTF.cs
- LineSegment.cs
- OpCopier.cs
- TimeSpanOrInfiniteConverter.cs
- MachineKeySection.cs
- ExpressionConverter.cs
- XmlNamespaceMapping.cs
- IfAction.cs
- SqlUserDefinedTypeAttribute.cs
- HMACRIPEMD160.cs
- Dispatcher.cs
- ImportedNamespaceContextItem.cs
- ReflectionTypeLoadException.cs
- BindingList.cs
- DataGrid.cs
- TextPenaltyModule.cs
- ListDesigner.cs
- CurrentTimeZone.cs
- MLangCodePageEncoding.cs
- QueryableFilterUserControl.cs
- NativeRecognizer.cs
- Rect.cs
- HeaderedItemsControl.cs
- StringKeyFrameCollection.cs
- SchemaConstraints.cs
- PrePostDescendentsWalker.cs
- Point4DValueSerializer.cs
- EventLogPermissionEntry.cs
- GenericEnumerator.cs
- SymbolPair.cs
- EntityDataSourceEntitySetNameItem.cs
- CommittableTransaction.cs
- DependencyProperty.cs
- DataTableTypeConverter.cs
- ModelUtilities.cs
- TimeEnumHelper.cs
- StylusButtonEventArgs.cs
- ConnectionStringSettings.cs
- TextSpan.cs
- FontUnitConverter.cs
- ConnectionsZone.cs
- FontFamilyIdentifier.cs
- WebPartActionVerb.cs
- ObjectDisposedException.cs
- SmtpNtlmAuthenticationModule.cs
- MediaEntryAttribute.cs
- PageHandlerFactory.cs
- StringFreezingAttribute.cs
- EmptyArray.cs
- NestedContainer.cs
- DependencyPropertyKey.cs
- TraceHwndHost.cs
- DataGridViewColumn.cs
- ZoneLinkButton.cs
- SqlMetaData.cs
- AssemblyFilter.cs
- PaginationProgressEventArgs.cs
- Int32RectConverter.cs
- TemplateControlParser.cs
- SqlServer2KCompatibilityCheck.cs
- AutoScrollExpandMessageFilter.cs
- WebDisplayNameAttribute.cs
- ByteViewer.cs
- InvalidOperationException.cs
- EntityTypeEmitter.cs
- WebConfigurationHost.cs
- ScriptReferenceEventArgs.cs
- IMembershipProvider.cs
- UIElement.cs
- PermissionSetTriple.cs
- TextEndOfLine.cs
- BuildProviderInstallComponent.cs
- Parser.cs
- CustomWebEventKey.cs
- SafeCoTaskMem.cs
- ELinqQueryState.cs
- DelegateBodyWriter.cs
- ReadOnlyAttribute.cs
- EncodingDataItem.cs
- HideDisabledControlAdapter.cs
- NameNode.cs
- StorageMappingItemCollection.cs
- RelationshipEndCollection.cs
- StringDictionaryCodeDomSerializer.cs
- Context.cs
- Utils.cs
- BuilderPropertyEntry.cs
- PageFunction.cs
- QualifiedCellIdBoolean.cs
- Polyline.cs
- DataGridViewRowCollection.cs
- PolicyUtility.cs
- ProfileInfo.cs
- CodeEntryPointMethod.cs