Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / DataGridRowHeaderAutomationPeer.cs / 1305600 / DataGridRowHeaderAutomationPeer.cs
using System; using System.Collections.Generic; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; namespace System.Windows.Automation.Peers { ////// AutomationPeer for DataGridRowHeader /// public sealed class DataGridRowHeaderAutomationPeer : ButtonBaseAutomationPeer { #region Constructors ////// AutomationPeer for DataGridRowHeader /// /// DataGridRowHeader public DataGridRowHeaderAutomationPeer(DataGridRowHeader owner) : base(owner) { } #endregion #region AutomationPeer Overrides ////// Gets the control type for the element that is associated with the UI Automation peer. /// ///The control type. protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.HeaderItem; } ////// Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, /// differentiates the control represented by this AutomationPeer. /// ///The string that contains the name. protected override string GetClassNameCore() { return Owner.GetType().Name; } ////// Gets a value that specifies whether the element is a content element. /// ///true if the element is a content element; otherwise false protected override bool IsContentElementCore() { return false; } /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return DoubleUtil.AreClose(boundingRect, Rect.Empty) || DoubleUtil.AreClose(boundingRect.Height, 0.0) || DoubleUtil.AreClose(boundingRect.Width, 0.0); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; namespace System.Windows.Automation.Peers { ////// AutomationPeer for DataGridRowHeader /// public sealed class DataGridRowHeaderAutomationPeer : ButtonBaseAutomationPeer { #region Constructors ////// AutomationPeer for DataGridRowHeader /// /// DataGridRowHeader public DataGridRowHeaderAutomationPeer(DataGridRowHeader owner) : base(owner) { } #endregion #region AutomationPeer Overrides ////// Gets the control type for the element that is associated with the UI Automation peer. /// ///The control type. protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.HeaderItem; } ////// Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, /// differentiates the control represented by this AutomationPeer. /// ///The string that contains the name. protected override string GetClassNameCore() { return Owner.GetType().Name; } ////// Gets a value that specifies whether the element is a content element. /// ///true if the element is a content element; otherwise false protected override bool IsContentElementCore() { return false; } /// override protected bool IsOffscreenCore() { if (!Owner.IsVisible) return true; Rect boundingRect = CalculateVisibleBoundingRect(); return DoubleUtil.AreClose(boundingRect, Rect.Empty) || DoubleUtil.AreClose(boundingRect.Height, 0.0) || DoubleUtil.AreClose(boundingRect.Width, 0.0); } #endregion } } // 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
- CrossSiteScriptingValidation.cs
- SHA384Managed.cs
- BaseUriHelper.cs
- CodeCommentStatement.cs
- TextBoxAutoCompleteSourceConverter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Lasso.cs
- HttpConfigurationContext.cs
- mactripleDES.cs
- WebConfigurationHost.cs
- IdentityHolder.cs
- infer.cs
- MobileErrorInfo.cs
- TabPanel.cs
- ControlAdapter.cs
- InvokeBinder.cs
- SafeMILHandleMemoryPressure.cs
- DecoderBestFitFallback.cs
- ErrorInfoXmlDocument.cs
- WebZone.cs
- FileLevelControlBuilderAttribute.cs
- SafeMILHandle.cs
- SplashScreen.cs
- ScrollChrome.cs
- Parser.cs
- BindingSource.cs
- DynamicScriptObject.cs
- AnnotationMap.cs
- GenericIdentity.cs
- BufferedGraphicsContext.cs
- odbcmetadatacollectionnames.cs
- FontStretchConverter.cs
- EUCJPEncoding.cs
- PropertyValueChangedEvent.cs
- GridViewRowPresenter.cs
- RenamedEventArgs.cs
- HtmlPageAdapter.cs
- XmlCountingReader.cs
- base64Transforms.cs
- CharacterShapingProperties.cs
- EmptyReadOnlyDictionaryInternal.cs
- SmtpLoginAuthenticationModule.cs
- HtmlInputText.cs
- AppSettingsExpressionEditor.cs
- ExpressionVisitor.cs
- ColumnMapTranslator.cs
- XmlSchemaValidator.cs
- _ProxyRegBlob.cs
- DataObjectPastingEventArgs.cs
- JsonFaultDetail.cs
- unitconverter.cs
- Camera.cs
- InputEventArgs.cs
- SoapHttpTransportImporter.cs
- EntityDataSource.cs
- ClientBuildManagerCallback.cs
- TreeNodeBindingDepthConverter.cs
- LayoutEngine.cs
- PinnedBufferMemoryStream.cs
- KerberosTokenFactoryCredential.cs
- XXXOnTypeBuilderInstantiation.cs
- ClientRuntimeConfig.cs
- SmiConnection.cs
- OletxEnlistment.cs
- AutoGeneratedFieldProperties.cs
- ImageListUtils.cs
- SectionVisual.cs
- OptimalBreakSession.cs
- ScriptResourceHandler.cs
- MessageSecurityOverHttp.cs
- HtmlShimManager.cs
- CreatingCookieEventArgs.cs
- Pool.cs
- ExcludeFromCodeCoverageAttribute.cs
- UnSafeCharBuffer.cs
- Parameter.cs
- SqlCommandSet.cs
- _RequestCacheProtocol.cs
- LogSwitch.cs
- CodeDomExtensionMethods.cs
- RowToParametersTransformer.cs
- CodeTypeParameterCollection.cs
- ProfilePropertySettings.cs
- HandlerMappingMemo.cs
- GeneratedCodeAttribute.cs
- LayoutInformation.cs
- WebPartUserCapability.cs
- VarRemapper.cs
- LineVisual.cs
- FontDriver.cs
- MultiBindingExpression.cs
- RadioButton.cs
- ChannelReliableSession.cs
- Convert.cs
- ValidatingReaderNodeData.cs
- AttributeData.cs
- EnumType.cs
- SystemWebCachingSectionGroup.cs
- BamlTreeUpdater.cs
- DependencyPropertyKind.cs