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
- RawStylusActions.cs
- TextBox.cs
- XsdCachingReader.cs
- SoapTypeAttribute.cs
- BamlWriter.cs
- DesignerTextViewAdapter.cs
- HttpCachePolicy.cs
- SmtpLoginAuthenticationModule.cs
- ResourceReferenceExpressionConverter.cs
- DateTimeConstantAttribute.cs
- GradientBrush.cs
- PointConverter.cs
- ProgressBar.cs
- Pair.cs
- PropertyEmitterBase.cs
- HttpConfigurationContext.cs
- WebPartExportVerb.cs
- InheritanceContextHelper.cs
- PointConverter.cs
- ListViewUpdateEventArgs.cs
- _TimerThread.cs
- LeafCellTreeNode.cs
- CheckBoxAutomationPeer.cs
- BrowserCapabilitiesFactoryBase.cs
- EnumerableRowCollectionExtensions.cs
- DateTimeUtil.cs
- XsltOutput.cs
- followingsibling.cs
- StateFinalizationActivity.cs
- SRef.cs
- SmtpTransport.cs
- UIAgentMonitorHandle.cs
- Buffer.cs
- Expression.DebuggerProxy.cs
- ParserHooks.cs
- XmlFormatWriterGenerator.cs
- DataTableReader.cs
- BlockExpression.cs
- SizeValueSerializer.cs
- VSWCFServiceContractGenerator.cs
- EllipseGeometry.cs
- CodeObjectCreateExpression.cs
- BasicAsyncResult.cs
- CodeRemoveEventStatement.cs
- XmlTypeMapping.cs
- AdRotator.cs
- UICuesEvent.cs
- CodeCommentStatement.cs
- XmlSchemaCollection.cs
- complextypematerializer.cs
- FileEnumerator.cs
- SubpageParaClient.cs
- HtmlSelect.cs
- AttributeData.cs
- cookiecollection.cs
- OleDbInfoMessageEvent.cs
- PropertyTabAttribute.cs
- DataTablePropertyDescriptor.cs
- WpfPayload.cs
- namescope.cs
- DataGridAutoFormatDialog.cs
- Array.cs
- HtmlInputPassword.cs
- RawStylusInput.cs
- SemanticAnalyzer.cs
- EventRouteFactory.cs
- XPathParser.cs
- FontFamily.cs
- _OverlappedAsyncResult.cs
- NamespaceImport.cs
- odbcmetadatafactory.cs
- KnownBoxes.cs
- SerTrace.cs
- DesignerActionPropertyItem.cs
- HighContrastHelper.cs
- RegisteredHiddenField.cs
- HealthMonitoringSection.cs
- SqlDataSourceCustomCommandEditor.cs
- MexBindingElement.cs
- Figure.cs
- CodeCompileUnit.cs
- documentsequencetextcontainer.cs
- BCryptSafeHandles.cs
- DesignColumn.cs
- AxHost.cs
- MobileUserControlDesigner.cs
- XmlSchemaSet.cs
- AnimationTimeline.cs
- EventLogPermissionEntry.cs
- OleDbConnection.cs
- MessageSmuggler.cs
- SR.cs
- AdRotator.cs
- CheckBoxStandardAdapter.cs
- ComponentEditorPage.cs
- ClonableStack.cs
- WorkflowRuntimeEndpoint.cs
- GlobalProxySelection.cs
- ColumnHeaderConverter.cs
- PathSegment.cs