Code:
/ 4.0 / 4.0 / 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. 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
- ParenthesizePropertyNameAttribute.cs
- ModelTreeEnumerator.cs
- BitmapEffectInputData.cs
- Gdiplus.cs
- DataKeyCollection.cs
- TypeResolver.cs
- DefaultBinder.cs
- LineProperties.cs
- ClassicBorderDecorator.cs
- FrugalMap.cs
- SqlTriggerContext.cs
- FileInfo.cs
- SimpleHandlerFactory.cs
- LogLogRecordHeader.cs
- StylusDevice.cs
- MemberInitExpression.cs
- AppDomainShutdownMonitor.cs
- ClientProxyGenerator.cs
- DataGrid.cs
- TextContainer.cs
- FileVersionInfo.cs
- UnicastIPAddressInformationCollection.cs
- ChangePassword.cs
- PagerSettings.cs
- CreateUserErrorEventArgs.cs
- PerformanceCountersBase.cs
- HostSecurityManager.cs
- WebSysDescriptionAttribute.cs
- XmlTextAttribute.cs
- TiffBitmapEncoder.cs
- Variant.cs
- TableCell.cs
- SoundPlayer.cs
- Evidence.cs
- CapabilitiesSection.cs
- DataFormats.cs
- XmlNode.cs
- ObjectSecurity.cs
- InputLangChangeRequestEvent.cs
- SiteMapNodeItemEventArgs.cs
- JsonObjectDataContract.cs
- MessageQuerySet.cs
- ContextMarshalException.cs
- NavigationPropertyEmitter.cs
- FolderBrowserDialogDesigner.cs
- ColorKeyFrameCollection.cs
- TimeSpanStorage.cs
- XNodeValidator.cs
- SQLMembershipProvider.cs
- ConfigurationFileMap.cs
- CodeSnippetTypeMember.cs
- DocumentPage.cs
- HttpRequest.cs
- EnumType.cs
- XmlSerializerOperationGenerator.cs
- ipaddressinformationcollection.cs
- WebBrowserContainer.cs
- XMLSyntaxException.cs
- ControlCachePolicy.cs
- ItemCheckedEvent.cs
- OAVariantLib.cs
- JulianCalendar.cs
- Baml2006ReaderFrame.cs
- StringAnimationUsingKeyFrames.cs
- ScrollItemProviderWrapper.cs
- ByteKeyFrameCollection.cs
- XmlCodeExporter.cs
- SchemaType.cs
- CustomCredentialPolicy.cs
- ProviderConnectionPointCollection.cs
- HwndAppCommandInputProvider.cs
- IIS7UserPrincipal.cs
- CorrelationScope.cs
- LinkButton.cs
- TimeStampChecker.cs
- SpeechDetectedEventArgs.cs
- FrameworkElementFactory.cs
- TransformerInfoCollection.cs
- WorkflowPageSetupDialog.cs
- MetadataItemCollectionFactory.cs
- FormsAuthenticationModule.cs
- DataAdapter.cs
- glyphs.cs
- XmlSerializationWriter.cs
- EFDataModelProvider.cs
- ExpressionBuilder.cs
- ContextMenuStripActionList.cs
- Oid.cs
- ListBoxItem.cs
- MatrixUtil.cs
- Memoizer.cs
- BaseProcessProtocolHandler.cs
- DeclarationUpdate.cs
- UInt16Storage.cs
- FixedSOMTableCell.cs
- SkewTransform.cs
- DataControlButton.cs
- SQLChars.cs
- TextParagraphProperties.cs
- EmptyEnumerator.cs