Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ListBoxItemWrapperAutomationPeer.cs / 1305600 / ListBoxItemWrapperAutomationPeer.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Windows;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using MS.Internal;
using MS.Win32;
namespace System.Windows.Automation.Peers
{
///
public class ListBoxItemWrapperAutomationPeer: FrameworkElementAutomationPeer
{
///
public ListBoxItemWrapperAutomationPeer(ListBoxItem owner): base(owner)
{}
///
override protected string GetClassNameCore()
{
return "ListBoxItem";
}
///
override protected AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.ListItem;
}
///
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
- SHA1.cs
- HiddenField.cs
- PersonalizationProviderHelper.cs
- TypedDataSetSchemaImporterExtension.cs
- TileBrush.cs
- AsyncResult.cs
- __TransparentProxy.cs
- XmlSchemaObjectTable.cs
- DynamicRenderer.cs
- EntityDataSourceWizardForm.cs
- FlowThrottle.cs
- CheckBoxPopupAdapter.cs
- KnownTypes.cs
- ExpressionStringBuilder.cs
- StreamGeometryContext.cs
- HttpWebResponse.cs
- TextDpi.cs
- DecoderBestFitFallback.cs
- DataSourceProvider.cs
- PartBasedPackageProperties.cs
- Switch.cs
- NetworkStream.cs
- LinqDataSourceUpdateEventArgs.cs
- DataSourceExpressionCollection.cs
- ProviderMetadataCachedInformation.cs
- CngUIPolicy.cs
- DrawTreeNodeEventArgs.cs
- XhtmlConformanceSection.cs
- SingletonConnectionReader.cs
- X509PeerCertificateElement.cs
- SqlCommandBuilder.cs
- IndentTextWriter.cs
- PasswordTextNavigator.cs
- JpegBitmapEncoder.cs
- BoundPropertyEntry.cs
- PeerService.cs
- itemelement.cs
- PropertyPathConverter.cs
- DockProviderWrapper.cs
- CodeAccessPermission.cs
- XmlAttributes.cs
- ProgressiveCrcCalculatingStream.cs
- Signature.cs
- TypeUtil.cs
- RequestCachePolicy.cs
- BroadcastEventHelper.cs
- HostSecurityManager.cs
- RowVisual.cs
- ObjectMemberMapping.cs
- SmtpNetworkElement.cs
- MergeFailedEvent.cs
- ApplicationManager.cs
- VisualStateManager.cs
- Listbox.cs
- ZoneIdentityPermission.cs
- FileClassifier.cs
- BitArray.cs
- basevalidator.cs
- DecimalConverter.cs
- ViewLoader.cs
- ScriptComponentDescriptor.cs
- Component.cs
- DiscoveryReference.cs
- EdmRelationshipRoleAttribute.cs
- ApplicationHost.cs
- MultiView.cs
- ComponentEditorForm.cs
- MenuEventArgs.cs
- LogStream.cs
- ContentPropertyAttribute.cs
- ButtonAutomationPeer.cs
- RoleManagerModule.cs
- SpStreamWrapper.cs
- DataGridViewIntLinkedList.cs
- SecurityCriticalDataForSet.cs
- QilStrConcatenator.cs
- GetPageNumberCompletedEventArgs.cs
- SmtpException.cs
- Compiler.cs
- ProcessModule.cs
- ISO2022Encoding.cs
- HyperLinkColumn.cs
- RoutedEventHandlerInfo.cs
- JsonFormatWriterGenerator.cs
- DecoderBestFitFallback.cs
- StateRuntime.cs
- ChannelTraceRecord.cs
- DetailsViewUpdateEventArgs.cs
- StorageMappingItemCollection.cs
- DoubleAnimationUsingPath.cs
- DesignerActionList.cs
- FormViewDeleteEventArgs.cs
- XmlSchemaAttribute.cs
- TreeNodeEventArgs.cs
- HighlightComponent.cs
- BitmapEffectrendercontext.cs
- DesignerCategoryAttribute.cs
- ContextMenuAutomationPeer.cs
- DataMisalignedException.cs
- ProcessThreadCollection.cs