Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / StatusBarItemAutomationPeer.cs / 1305600 / StatusBarItemAutomationPeer.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.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class StatusBarItemAutomationPeer : FrameworkElementAutomationPeer { /// public StatusBarItemAutomationPeer(StatusBarItem owner): base(owner) { } /// override protected string GetClassNameCore() { return "StatusBarItem"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } /// 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.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class StatusBarItemAutomationPeer : FrameworkElementAutomationPeer { /// public StatusBarItemAutomationPeer(StatusBarItem owner): base(owner) { } /// override protected string GetClassNameCore() { return "StatusBarItem"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } /// 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
- Image.cs
- Journal.cs
- ReadOnlyPermissionSet.cs
- FilterException.cs
- AutomationPatternInfo.cs
- HtmlHead.cs
- FunctionDetailsReader.cs
- Decorator.cs
- OpCodes.cs
- DropDownList.cs
- KoreanCalendar.cs
- SerializationInfoEnumerator.cs
- VirtualizedContainerService.cs
- EastAsianLunisolarCalendar.cs
- ServiceOperationParameter.cs
- GeometryCombineModeValidation.cs
- SqlConnectionStringBuilder.cs
- PerformanceCounterPermission.cs
- WebPartEditorCancelVerb.cs
- Matrix3D.cs
- ScriptResourceAttribute.cs
- DetailsViewInsertedEventArgs.cs
- WriteTimeStream.cs
- DbReferenceCollection.cs
- TraceUtility.cs
- designeractionbehavior.cs
- FileSecurity.cs
- XslCompiledTransform.cs
- BitmapSizeOptions.cs
- ManifestSignedXml.cs
- CharacterShapingProperties.cs
- ElementInit.cs
- ItemCollection.cs
- GeometryCollection.cs
- ViewStateModeByIdAttribute.cs
- EncryptedPackage.cs
- OleDbCommand.cs
- IRCollection.cs
- EntityObject.cs
- TypeDescriptionProvider.cs
- BindingExpressionUncommonField.cs
- SerTrace.cs
- AppDomainShutdownMonitor.cs
- IFlowDocumentViewer.cs
- ToolStripSeparator.cs
- Menu.cs
- localization.cs
- DataSourceCacheDurationConverter.cs
- RectangleConverter.cs
- AssemblyLoader.cs
- ObjectDataProvider.cs
- CodeTypeReferenceExpression.cs
- AttributeCollection.cs
- Parser.cs
- TableSectionStyle.cs
- FrameworkPropertyMetadata.cs
- CorrelationKeyCalculator.cs
- UIElementAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- TriggerAction.cs
- ClassDataContract.cs
- FilterQuery.cs
- IBuiltInEvidence.cs
- ToolStripRenderer.cs
- ComplexBindingPropertiesAttribute.cs
- SchemaInfo.cs
- AsyncPostBackTrigger.cs
- InvalidProgramException.cs
- TypeDependencyAttribute.cs
- GifBitmapDecoder.cs
- InputMethodStateChangeEventArgs.cs
- WindowsSolidBrush.cs
- ObjectDataSourceChooseMethodsPanel.cs
- MoveSizeWinEventHandler.cs
- PersonalizationDictionary.cs
- Rijndael.cs
- Win32NamedPipes.cs
- AuthenticationSection.cs
- EffectiveValueEntry.cs
- TemplateContentLoader.cs
- LogPolicy.cs
- ResolveNameEventArgs.cs
- UnsafeNativeMethods.cs
- BrowserInteropHelper.cs
- OleDbRowUpdatingEvent.cs
- SoapCommonClasses.cs
- WrapPanel.cs
- InputElement.cs
- QilTargetType.cs
- Switch.cs
- TimerElapsedEvenArgs.cs
- PageAsyncTaskManager.cs
- StoreItemCollection.Loader.cs
- SectionUpdates.cs
- AllMembershipCondition.cs
- HandoffBehavior.cs
- RenderingBiasValidation.cs
- KeyValueConfigurationCollection.cs
- InlinedAggregationOperatorEnumerator.cs
- CssStyleCollection.cs