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
- VerificationAttribute.cs
- TraversalRequest.cs
- NativeMethods.cs
- SqlDataSourceCustomCommandEditor.cs
- IListConverters.cs
- DeobfuscatingStream.cs
- XmlAttributeOverrides.cs
- HttpProtocolImporter.cs
- Int16Animation.cs
- SchemaElementDecl.cs
- SplitContainer.cs
- ImmutableCollection.cs
- HttpRequestCacheValidator.cs
- EnvironmentPermission.cs
- WindowVisualStateTracker.cs
- Span.cs
- DiscreteKeyFrames.cs
- SendOperation.cs
- DataGridItemEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- DataControlExtensions.cs
- AssociationEndMember.cs
- WmpBitmapEncoder.cs
- DataServiceQueryProvider.cs
- SamlAssertionKeyIdentifierClause.cs
- TypeToken.cs
- _PooledStream.cs
- MethodAccessException.cs
- WebPartUtil.cs
- WindowsTab.cs
- MailDefinition.cs
- X509Extension.cs
- ImplicitInputBrush.cs
- Expressions.cs
- ColumnCollection.cs
- DocumentPageViewAutomationPeer.cs
- CryptoProvider.cs
- SettingsPropertyWrongTypeException.cs
- BitmapPalette.cs
- ToolStripOverflowButton.cs
- TableItemPattern.cs
- ComboBoxAutomationPeer.cs
- ConfigurationPropertyCollection.cs
- UnionExpr.cs
- unsafeIndexingFilterStream.cs
- XmlAttribute.cs
- Rect3D.cs
- ListControl.cs
- OracleInternalConnection.cs
- OdbcConnectionFactory.cs
- FileRecordSequence.cs
- ReturnEventArgs.cs
- TableLayoutPanelCellPosition.cs
- SqlDataSourceCommandEventArgs.cs
- ComponentEditorPage.cs
- TempFiles.cs
- XmlSerializationWriter.cs
- SystemWebExtensionsSectionGroup.cs
- MethodRental.cs
- Mouse.cs
- IISUnsafeMethods.cs
- EntityStoreSchemaFilterEntry.cs
- PathSegment.cs
- ResourceManager.cs
- TextElementCollectionHelper.cs
- UInt32Storage.cs
- CharUnicodeInfo.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SortedDictionary.cs
- WpfXamlMember.cs
- ProbeRequestResponseAsyncResult.cs
- Transactions.cs
- XmlCodeExporter.cs
- URLAttribute.cs
- SafeNativeMethods.cs
- GroupQuery.cs
- GenericEnumerator.cs
- StringTraceRecord.cs
- BindingNavigator.cs
- GenericPrincipal.cs
- WebPartMenu.cs
- DataGridViewBand.cs
- ServiceHostFactory.cs
- ImageField.cs
- ScriptServiceAttribute.cs
- AnonymousIdentificationSection.cs
- LiteralControl.cs
- Model3DCollection.cs
- SqlAliasesReferenced.cs
- Base64Stream.cs
- WpfXamlLoader.cs
- ClientCultureInfo.cs
- ConnectionStringsExpressionBuilder.cs
- ProfilePropertySettings.cs
- CheckPair.cs
- WrappedIUnknown.cs
- MemoryPressure.cs
- XDRSchema.cs
- WebPartEventArgs.cs
- PrinterSettings.cs