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
- MessagePropertyDescriptionCollection.cs
- TextTreeExtractElementUndoUnit.cs
- smtppermission.cs
- NativeMethods.cs
- SiteMapNodeCollection.cs
- PrinterUnitConvert.cs
- ActivityContext.cs
- UpdatePanelControlTrigger.cs
- DataGridLinkButton.cs
- HotSpotCollection.cs
- ApplicationProxyInternal.cs
- SubqueryRules.cs
- OrderByQueryOptionExpression.cs
- FilterEventArgs.cs
- DecoderFallback.cs
- HierarchicalDataBoundControlAdapter.cs
- VisualTarget.cs
- ValueCollectionParameterReader.cs
- TreeNodeStyleCollection.cs
- DescendantOverDescendantQuery.cs
- BaseDataBoundControl.cs
- WindowsTooltip.cs
- EventBindingService.cs
- EdmValidator.cs
- FormViewUpdateEventArgs.cs
- Invariant.cs
- XmlSerializer.cs
- TextParagraph.cs
- CommandLibraryHelper.cs
- InvokeMethodActivity.cs
- ContentDesigner.cs
- TheQuery.cs
- SelfIssuedTokenFactoryCredential.cs
- ScrollPattern.cs
- StringBuilder.cs
- OpenTypeLayoutCache.cs
- Constants.cs
- RuleSetDialog.cs
- ToolStripTextBox.cs
- Dispatcher.cs
- GeneralTransform3DGroup.cs
- RadioButton.cs
- TouchFrameEventArgs.cs
- TrackingLocationCollection.cs
- MessageProperties.cs
- SmtpCommands.cs
- SafeNativeMethods.cs
- OpenFileDialog.cs
- EntityContainer.cs
- ProviderConnectionPointCollection.cs
- SafeNativeMethods.cs
- ConstructorArgumentAttribute.cs
- DetailsViewModeEventArgs.cs
- ResourceIDHelper.cs
- DynamicRenderer.cs
- ViewStateException.cs
- ExpressionVisitor.cs
- EmbeddedMailObjectsCollection.cs
- PrincipalPermission.cs
- HebrewCalendar.cs
- GenericTypeParameterConverter.cs
- CroppedBitmap.cs
- InheritanceRules.cs
- AdRotatorDesigner.cs
- SpellCheck.cs
- SafeSystemMetrics.cs
- MetadataArtifactLoaderResource.cs
- BCLDebug.cs
- PropertyTabChangedEvent.cs
- EntitySqlQueryCacheEntry.cs
- ConfigXmlWhitespace.cs
- GraphicsContainer.cs
- HttpRequestWrapper.cs
- DateTimeOffsetStorage.cs
- DataGridSortCommandEventArgs.cs
- Int32Rect.cs
- Utils.cs
- CharacterString.cs
- Wrapper.cs
- ResourcePart.cs
- QilTargetType.cs
- ScrollPattern.cs
- Model3DCollection.cs
- WorkerRequest.cs
- DataGridViewTextBoxColumn.cs
- EventLogLink.cs
- UrlMappingCollection.cs
- SoapIgnoreAttribute.cs
- NativeMethods.cs
- WebPartDeleteVerb.cs
- DataGridItem.cs
- DocumentGrid.cs
- ExpressionEditorAttribute.cs
- SecurityKeyIdentifier.cs
- ToolStripOverflow.cs
- PrintingPermission.cs
- DrawingAttributesDefaultValueFactory.cs
- Hash.cs
- AppDomainShutdownMonitor.cs
- ZoneButton.cs