Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / HwndHostAutomationPeer.cs / 1 / HwndHostAutomationPeer.cs
using System.Collections.Generic; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Interop; using System.Security; using System.Security.Permissions; using MS.Internal.Automation; namespace System.Windows.Automation.Peers { /// internal class HwndHostAutomationPeer : FrameworkElementAutomationPeer { /// public HwndHostAutomationPeer(HwndHost owner): base(owner) { IsInteropPeer = true; } /// override protected string GetClassNameCore() { return "HwndHost"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Pane; } ////// Critical - Calls critical HwndHost.CriticalHandle. /// TreatAsSafe - Critical data is used internally and not explosed /// [SecurityCritical, SecurityTreatAsSafe] override internal InteropAutomationProvider GetInteropChild() { if (_interopProvider == null) { HostedWindowWrapper wrapper = null; HwndHost host = (HwndHost)Owner; IntPtr hwnd = host.CriticalHandle; if(hwnd != IntPtr.Zero) { wrapper = HostedWindowWrapper.CreateInternal(hwnd); } _interopProvider = new InteropAutomationProvider(wrapper, this); } return _interopProvider; } #region Data private InteropAutomationProvider _interopProvider; #endregion Data } } // 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
- XPathNavigatorReader.cs
- HtmlMobileTextWriter.cs
- ClockController.cs
- CommonGetThemePartSize.cs
- CollectionViewGroupInternal.cs
- ASCIIEncoding.cs
- ProtocolsSection.cs
- Int32.cs
- QueryOutputWriter.cs
- CryptoKeySecurity.cs
- AssemblyBuilder.cs
- TypographyProperties.cs
- EdmPropertyAttribute.cs
- ColorPalette.cs
- Debugger.cs
- CodeTypeConstructor.cs
- ComboBox.cs
- StringInfo.cs
- Registry.cs
- Crc32.cs
- ChangesetResponse.cs
- CompiledIdentityConstraint.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- MasterPageParser.cs
- EventRecordWrittenEventArgs.cs
- Scanner.cs
- TypeSystemProvider.cs
- SecurityTokenAuthenticator.cs
- FixedHighlight.cs
- AQNBuilder.cs
- HttpRequestCacheValidator.cs
- WrappedKeySecurityTokenParameters.cs
- clipboard.cs
- AutomationPeer.cs
- HotSpot.cs
- ItemsControl.cs
- SearchExpression.cs
- ViewStateException.cs
- IndentTextWriter.cs
- DivideByZeroException.cs
- SerializationEventsCache.cs
- TextParagraphView.cs
- LedgerEntry.cs
- SHA384.cs
- TextInfo.cs
- ReferenceConverter.cs
- XhtmlStyleClass.cs
- WebGetAttribute.cs
- BufferedGraphicsContext.cs
- SqlDataSourceEnumerator.cs
- TreeNodeCollection.cs
- EdmRelationshipRoleAttribute.cs
- ListItemCollection.cs
- RightsManagementResourceHelper.cs
- AbandonedMutexException.cs
- ToolStripOverflow.cs
- QilReference.cs
- WebServiceData.cs
- HttpWebResponse.cs
- XmlText.cs
- BitmapFrameDecode.cs
- DesignerSelectionListAdapter.cs
- EntityDataSourceState.cs
- DependencySource.cs
- WebPartZone.cs
- PolyBezierSegment.cs
- SqlGenericUtil.cs
- AttachedPropertyMethodSelector.cs
- KnownIds.cs
- ComContractElementCollection.cs
- Registry.cs
- ThrowHelper.cs
- DesignerCapabilities.cs
- WebServiceBindingAttribute.cs
- sqlinternaltransaction.cs
- RowSpanVector.cs
- Form.cs
- RijndaelManagedTransform.cs
- InitializationEventAttribute.cs
- TreeWalker.cs
- Command.cs
- ServiceOperation.cs
- DefaultAssemblyResolver.cs
- shaperfactoryquerycacheentry.cs
- ProgramNode.cs
- Int32Collection.cs
- __TransparentProxy.cs
- FaultImportOptions.cs
- OdbcConnectionPoolProviderInfo.cs
- SqlUDTStorage.cs
- CompareInfo.cs
- ReferencedCategoriesDocument.cs
- securestring.cs
- RelationshipWrapper.cs
- FileNotFoundException.cs
- StringAttributeCollection.cs
- TextEffect.cs
- PrePostDescendentsWalker.cs
- XmlAttributeOverrides.cs
- SecurityCredentialsManager.cs