Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / TabItemWrapperAutomationPeer.cs / 1305600 / TabItemWrapperAutomationPeer.cs
using System; using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers { /// public class TabItemWrapperAutomationPeer: FrameworkElementAutomationPeer { /// public TabItemWrapperAutomationPeer(TabItem owner): base(owner) {} /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return (boundingRect == Rect.Empty || boundingRect.Height == 0 || boundingRect.Width == 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers { /// public class TabItemWrapperAutomationPeer: FrameworkElementAutomationPeer { /// public TabItemWrapperAutomationPeer(TabItem owner): base(owner) {} /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return (boundingRect == Rect.Empty || boundingRect.Height == 0 || boundingRect.Width == 0); } } } // 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
- FormClosedEvent.cs
- DispatcherOperation.cs
- XDeferredAxisSource.cs
- EdmComplexPropertyAttribute.cs
- InteropTrackingRecord.cs
- InternalConfirm.cs
- TableParagraph.cs
- X509ChainPolicy.cs
- ListBox.cs
- IPAddress.cs
- PersonalizationDictionary.cs
- XmlDataSource.cs
- Button.cs
- VBIdentifierDesigner.xaml.cs
- BasicExpandProvider.cs
- ConstraintStruct.cs
- ToolStripSettings.cs
- shaperfactoryquerycacheentry.cs
- BaseParser.cs
- CommentEmitter.cs
- XmlDomTextWriter.cs
- TypeDescriptionProvider.cs
- RichTextBoxConstants.cs
- ScrollChangedEventArgs.cs
- TextRunTypographyProperties.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CatalogPart.cs
- ForEachAction.cs
- Transform3D.cs
- DrawToolTipEventArgs.cs
- Comparer.cs
- GcHandle.cs
- MemberPath.cs
- ToolTip.cs
- OuterGlowBitmapEffect.cs
- EncoderExceptionFallback.cs
- ProcessHostMapPath.cs
- ExpressionEditorAttribute.cs
- RunWorkerCompletedEventArgs.cs
- PageClientProxyGenerator.cs
- PostBackOptions.cs
- AggregateNode.cs
- CatalogZone.cs
- DataObjectAttribute.cs
- InstallHelper.cs
- SmiEventSink_DeferedProcessing.cs
- TextRangeEditLists.cs
- WrappedReader.cs
- Win32MouseDevice.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- FrameworkTextComposition.cs
- MultiSelector.cs
- StyleSelector.cs
- MarkupExtensionParser.cs
- ActivationService.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TypePresenter.xaml.cs
- initElementDictionary.cs
- TraceRecord.cs
- RegistrySecurity.cs
- GridItemPatternIdentifiers.cs
- HtmlButton.cs
- SessionEndingCancelEventArgs.cs
- DynamicPropertyReader.cs
- PathFigureCollectionValueSerializer.cs
- FillBehavior.cs
- WindowsAuthenticationModule.cs
- ClientSession.cs
- CreateRefExpr.cs
- WeakHashtable.cs
- DoubleLink.cs
- WebPartMenuStyle.cs
- BuilderElements.cs
- InheritedPropertyChangedEventArgs.cs
- InternalTypeHelper.cs
- Int32CollectionConverter.cs
- EventMappingSettingsCollection.cs
- VariableQuery.cs
- ConnectionConsumerAttribute.cs
- GuidConverter.cs
- XmlSchemaSimpleContent.cs
- DragEventArgs.cs
- HTTPNotFoundHandler.cs
- GroupBoxDesigner.cs
- CmsUtils.cs
- Span.cs
- RemoteDebugger.cs
- ValueUtilsSmi.cs
- SmiSettersStream.cs
- WebBrowserContainer.cs
- BitmapEffectInput.cs
- DbModificationCommandTree.cs
- _HeaderInfoTable.cs
- RowsCopiedEventArgs.cs
- HttpPostedFile.cs
- FileVersion.cs
- EnumType.cs
- Vector3DAnimationBase.cs
- Semaphore.cs
- WindowsFormsSectionHandler.cs