Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / Win32Providers / MS / Internal / AutomationProxies / WindowsNonControl.cs / 1 / WindowsNonControl.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: A Windows Proxy to set IsContent and IsControl to false. // By setting both IsContent and IsControl to false this will hide these // controls from the Content view of the Automation Tree. // // History: // 02/24/2005 : [....] created //--------------------------------------------------------------------------- using System; using System.Collections; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { class WindowsNonControl: ProxyHwnd { // ----------------------------------------------------- // // Constructors // // ----------------------------------------------------- #region Constructors WindowsNonControl(IntPtr hwnd, ProxyFragment parent, int item) : base(hwnd, parent, item) { _fIsContent = false; } #endregion #region Proxy Create // Static Create method called by UIAutomation to create this proxy. // returns null if unsuccessful internal static IRawElementProviderSimple Create(IntPtr hwnd, int idChild, int idObject) { return Create(hwnd, idChild); } private static IRawElementProviderSimple Create(IntPtr hwnd, int idChild) { // Something is wrong if idChild is not zero if (idChild != 0) { System.Diagnostics.Debug.Assert(idChild == 0, "Invalid Child Id, idChild != 0"); throw new ArgumentOutOfRangeException("idChild", idChild, SR.Get(SRID.ShouldBeZero)); } return new WindowsNonControl(hwnd, null, idChild); } #endregion //------------------------------------------------------ // // Patterns Implementation // //----------------------------------------------------- #region ProxySimple Interface // Process all the Logical and Raw Element Properties internal override object GetElementProperty (AutomationProperty idProp) { if (idProp == AutomationElement.IsControlElementProperty) { return false; } return base.GetElementProperty (idProp); } #endregion } } // 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
- CancelEventArgs.cs
- ConnectionManagementElementCollection.cs
- AppDomain.cs
- MenuTracker.cs
- Int32Converter.cs
- hebrewshape.cs
- LoginView.cs
- Encoder.cs
- Trace.cs
- ObjectIDGenerator.cs
- ListenerConstants.cs
- Attachment.cs
- WriterOutput.cs
- prefixendpointaddressmessagefilter.cs
- ImageSource.cs
- EmbossBitmapEffect.cs
- InkSerializer.cs
- XsltOutput.cs
- CodeRegionDirective.cs
- BooleanConverter.cs
- KoreanCalendar.cs
- CodeStatement.cs
- NameSpaceExtractor.cs
- GiveFeedbackEvent.cs
- ShapingEngine.cs
- SourceFileInfo.cs
- ConnectionStringSettingsCollection.cs
- EdmFunction.cs
- WindowsFormsHostAutomationPeer.cs
- XmlSchemaElement.cs
- HttpDebugHandler.cs
- ProgressBarBrushConverter.cs
- WmpBitmapEncoder.cs
- SpeechSeg.cs
- DataControlFieldHeaderCell.cs
- ListViewDeleteEventArgs.cs
- ImageDrawing.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HuffmanTree.cs
- CapabilitiesAssignment.cs
- ADConnectionHelper.cs
- Win32.cs
- ToolBarButtonClickEvent.cs
- ConstrainedDataObject.cs
- FontNamesConverter.cs
- RecommendedAsConfigurableAttribute.cs
- RefType.cs
- FormDesigner.cs
- UnmanagedMemoryStream.cs
- MenuItemStyle.cs
- QuaternionAnimation.cs
- ping.cs
- ReaderWriterLockWrapper.cs
- OLEDB_Enum.cs
- categoryentry.cs
- WebScriptMetadataFormatter.cs
- ValueHandle.cs
- VarRemapper.cs
- WindowsNonControl.cs
- BitArray.cs
- SqlError.cs
- SafeTimerHandle.cs
- CustomPopupPlacement.cs
- Pkcs7Recipient.cs
- InstanceData.cs
- QueryOperator.cs
- PhysicalAddress.cs
- basecomparevalidator.cs
- GridViewRowCollection.cs
- StrongNameMembershipCondition.cs
- ResourceDisplayNameAttribute.cs
- Localizer.cs
- EventToken.cs
- EventProviderWriter.cs
- WebProxyScriptElement.cs
- RSAPKCS1SignatureFormatter.cs
- SecureEnvironment.cs
- XamlLoadErrorInfo.cs
- DocumentSchemaValidator.cs
- ComponentConverter.cs
- TransportSecurityHelpers.cs
- CheckBoxRenderer.cs
- GenerateHelper.cs
- oledbconnectionstring.cs
- InvokeSchedule.cs
- XXXOnTypeBuilderInstantiation.cs
- DocumentSequenceHighlightLayer.cs
- PathGradientBrush.cs
- MetricEntry.cs
- TemplateParser.cs
- RelationshipDetailsRow.cs
- MessageFilterTable.cs
- Command.cs
- FixedPageProcessor.cs
- _LazyAsyncResult.cs
- SamlConditions.cs
- DataRowCollection.cs
- PathFigureCollectionConverter.cs
- InkCanvas.cs
- IconHelper.cs