Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / DataGridDetailsPresenterAutomationPeer.cs / 1305600 / DataGridDetailsPresenterAutomationPeer.cs
using System; using System.Collections.Generic; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; namespace System.Windows.Automation.Peers { ////// AutomationPeer for DataGridDetailsPresenter /// public sealed class DataGridDetailsPresenterAutomationPeer : FrameworkElementAutomationPeer { #region Constructors ////// AutomationPeer for DataGridDetailsPresenter /// /// DataGridDetailsPresenter public DataGridDetailsPresenterAutomationPeer(DataGridDetailsPresenter owner) : base(owner) { } #endregion #region AutomationPeer Overrides /// protected override string GetClassNameCore() { return this.Owner.GetType().Name; } /// protected override bool IsContentElementCore() { return false; } /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return DoubleUtil.AreClose(boundingRect, Rect.Empty) || DoubleUtil.AreClose(boundingRect.Height, 0.0) || DoubleUtil.AreClose(boundingRect.Width, 0.0); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; namespace System.Windows.Automation.Peers { ////// AutomationPeer for DataGridDetailsPresenter /// public sealed class DataGridDetailsPresenterAutomationPeer : FrameworkElementAutomationPeer { #region Constructors ////// AutomationPeer for DataGridDetailsPresenter /// /// DataGridDetailsPresenter public DataGridDetailsPresenterAutomationPeer(DataGridDetailsPresenter owner) : base(owner) { } #endregion #region AutomationPeer Overrides /// protected override string GetClassNameCore() { return this.Owner.GetType().Name; } /// protected override bool IsContentElementCore() { return false; } /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return DoubleUtil.AreClose(boundingRect, Rect.Empty) || DoubleUtil.AreClose(boundingRect.Height, 0.0) || DoubleUtil.AreClose(boundingRect.Width, 0.0); } #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
- DbDataSourceEnumerator.cs
- LazyTextWriterCreator.cs
- DataServiceContext.cs
- SplitContainer.cs
- Brush.cs
- MenuCommandsChangedEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- columnmapkeybuilder.cs
- ItemCheckEvent.cs
- TextDocumentView.cs
- Dynamic.cs
- CaseInsensitiveHashCodeProvider.cs
- FieldReference.cs
- Pointer.cs
- TemplateColumn.cs
- TimeZoneInfo.cs
- AutomationPatternInfo.cs
- Polygon.cs
- XmlSchemaExporter.cs
- ArithmeticLiteral.cs
- GeometryDrawing.cs
- TrustSection.cs
- GraphicsPathIterator.cs
- RolePrincipal.cs
- CircleHotSpot.cs
- PagedDataSource.cs
- TextServicesCompartmentEventSink.cs
- SplayTreeNode.cs
- ReversePositionQuery.cs
- RegexGroup.cs
- SqlConnectionFactory.cs
- VersionedStreamOwner.cs
- CodeStatement.cs
- AlignmentYValidation.cs
- FilteredXmlReader.cs
- ViewDesigner.cs
- FakeModelItemImpl.cs
- ReaderOutput.cs
- HtmlForm.cs
- EditingScopeUndoUnit.cs
- IpcServerChannel.cs
- GroupQuery.cs
- mediaeventargs.cs
- SoapEnumAttribute.cs
- Visual3D.cs
- ServiceKnownTypeAttribute.cs
- ValueUtilsSmi.cs
- MsmqQueue.cs
- ByeOperationCD1AsyncResult.cs
- ProfessionalColorTable.cs
- ConfigurationFileMap.cs
- DataTableCollection.cs
- SoapServerProtocol.cs
- ErrorRuntimeConfig.cs
- RecordBuilder.cs
- LocalIdKeyIdentifierClause.cs
- FileSecurity.cs
- HtmlTextArea.cs
- ExtensionQuery.cs
- ImageCodecInfo.cs
- ImageAttributes.cs
- baseaxisquery.cs
- SHA1CryptoServiceProvider.cs
- WebSysDescriptionAttribute.cs
- HelloOperationCD1AsyncResult.cs
- XPathNavigatorKeyComparer.cs
- HtmlPageAdapter.cs
- FileRegion.cs
- CapabilitiesState.cs
- ISessionStateStore.cs
- TimeSpanHelper.cs
- SspiHelper.cs
- IsolatedStorageFilePermission.cs
- ColumnTypeConverter.cs
- DateBoldEvent.cs
- RequestNavigateEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- PerformanceCounterPermissionEntry.cs
- smtpconnection.cs
- SystemUdpStatistics.cs
- Page.cs
- Types.cs
- OdbcCommand.cs
- ApplicationGesture.cs
- ScriptingWebServicesSectionGroup.cs
- AuthorizationContext.cs
- MachineKeySection.cs
- FormViewDeleteEventArgs.cs
- DelegatingHeader.cs
- Sentence.cs
- RotateTransform.cs
- SQLBytes.cs
- recordstatefactory.cs
- panel.cs
- TreeNodeCollectionEditorDialog.cs
- OleDbErrorCollection.cs
- GridViewCellAutomationPeer.cs
- figurelengthconverter.cs
- ReferencedCollectionType.cs
- AutomationIdentifierGuids.cs