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
- UnsafeNativeMethodsCLR.cs
- _ListenerResponseStream.cs
- EditorBrowsableAttribute.cs
- FunctionDefinition.cs
- BamlRecordHelper.cs
- FragmentQueryKB.cs
- FaultDescription.cs
- KeyboardNavigation.cs
- PlaceHolder.cs
- TemplateContentLoader.cs
- EdmToObjectNamespaceMap.cs
- DataRowView.cs
- streamingZipPartStream.cs
- HtmlFormWrapper.cs
- OracleLob.cs
- RoutingConfiguration.cs
- SettingsPropertyCollection.cs
- Calendar.cs
- CounterSample.cs
- BoundingRectTracker.cs
- WebPartAddingEventArgs.cs
- XmlEnumAttribute.cs
- DrawingDrawingContext.cs
- TabControlEvent.cs
- AstTree.cs
- DataGridViewRowsAddedEventArgs.cs
- InvokeBinder.cs
- HtmlProps.cs
- CompilationUnit.cs
- SamlSerializer.cs
- TextEncodedRawTextWriter.cs
- XmlAtomicValue.cs
- BitmapSizeOptions.cs
- FontWeight.cs
- DefaultProxySection.cs
- Operator.cs
- DateTimeOffsetConverter.cs
- TableItemStyle.cs
- PasswordDeriveBytes.cs
- ADMembershipUser.cs
- InputBinder.cs
- ValidationHelpers.cs
- CompilationSection.cs
- KeyGesture.cs
- EncryptedKeyIdentifierClause.cs
- XsdDateTime.cs
- XmlTextAttribute.cs
- LogManagementAsyncResult.cs
- ClientBuildManagerCallback.cs
- Popup.cs
- SigningProgress.cs
- Italic.cs
- ElapsedEventArgs.cs
- CannotUnloadAppDomainException.cs
- ListBindableAttribute.cs
- UrlMappingsModule.cs
- AccessedThroughPropertyAttribute.cs
- DataShape.cs
- DbConnectionPoolOptions.cs
- ContainerTracking.cs
- XamlTypeMapper.cs
- BackgroundWorker.cs
- ConnectionStringSettings.cs
- MessageQueueInstaller.cs
- SamlAssertionKeyIdentifierClause.cs
- EncodingInfo.cs
- DesignerDataColumn.cs
- SoapFaultCodes.cs
- smtpconnection.cs
- XmlWellformedWriter.cs
- ScriptResourceDefinition.cs
- FocusTracker.cs
- ParameterModifier.cs
- ClientBuildManagerCallback.cs
- ConstNode.cs
- AutoResetEvent.cs
- StringArrayConverter.cs
- WithStatement.cs
- DropSource.cs
- CodeParameterDeclarationExpression.cs
- SessionStateItemCollection.cs
- XmlEntityReference.cs
- RelationshipSet.cs
- panel.cs
- Process.cs
- ConfigXmlWhitespace.cs
- IntMinMaxAggregationOperator.cs
- CollectionBuilder.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlParameter.cs
- DataTrigger.cs
- Form.cs
- PresentationAppDomainManager.cs
- DelegateArgumentReference.cs
- SubclassTypeValidatorAttribute.cs
- GPRECTF.cs
- CanExecuteRoutedEventArgs.cs
- TypeInitializationException.cs
- HtmlShim.cs
- File.cs