Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / ProgressBarAutomationPeer.cs / 1 / ProgressBarAutomationPeer.cs
using System; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class ProgressBarAutomationPeer : RangeBaseAutomationPeer, IRangeValueProvider { /// public ProgressBarAutomationPeer(ProgressBar owner): base(owner) { } /// override protected string GetClassNameCore() { return "ProgressBar"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.ProgressBar; } /// override public object GetPattern(PatternInterface patternInterface) { // Indeterminate ProgressBar should not support RangeValue pattern if (patternInterface == PatternInterface.RangeValue && ((ProgressBar)Owner).IsIndeterminate) return null; return base.GetPattern(patternInterface); } ////// Request to set the value that this UI element is representing /// /// Value to set the UI to, as an object ///true if the UI element was successfully set to the specified value //[CodeAnalysis("AptcaMethodsShouldOnlyCallAptcaMethods")] //Tracking Bug: 29647 void IRangeValueProvider.SetValue(double val) { throw new InvalidOperationException(SR.Get(SRID.ProgressBarReadOnly)); } ///Indicates that the value can only be read, not modified. ///returns True if the control is read-only bool IRangeValueProvider.IsReadOnly { get { return true; } } ///Value of a Large Change double IRangeValueProvider.LargeChange { get { return double.NaN; } } ///Value of a Small Change double IRangeValueProvider.SmallChange { get { return double.NaN; } } } } // 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
- XmlAttributeOverrides.cs
- AspProxy.cs
- DNS.cs
- PointConverter.cs
- CodeConstructor.cs
- GridViewColumnCollection.cs
- StreamGeometryContext.cs
- ExtendedPropertyCollection.cs
- MulticastOption.cs
- CoTaskMemUnicodeSafeHandle.cs
- ReadOnlyDataSource.cs
- WebEventTraceProvider.cs
- CodeConditionStatement.cs
- URLEditor.cs
- FillBehavior.cs
- DeadCharTextComposition.cs
- DataExpression.cs
- FontFamily.cs
- WebPartHeaderCloseVerb.cs
- FontFamilyValueSerializer.cs
- ComponentEditorPage.cs
- ComponentCommands.cs
- ReachIDocumentPaginatorSerializer.cs
- ConvertEvent.cs
- TableLayoutPanel.cs
- PolicyDesigner.cs
- ContextQuery.cs
- ExpressionCopier.cs
- RuntimeArgumentHandle.cs
- AutomationEvent.cs
- EncryptedPackage.cs
- RoutedUICommand.cs
- Freezable.cs
- DataGridViewDesigner.cs
- ApplicationBuildProvider.cs
- ReturnValue.cs
- XmlSchemaType.cs
- VisualBasicSettingsHandler.cs
- DesignTimeDataBinding.cs
- ExceptionUtil.cs
- ExpressionSelection.cs
- MouseGestureValueSerializer.cs
- WorkflowDesignerMessageFilter.cs
- ReadOnlyCollectionBase.cs
- XmlWellformedWriterHelpers.cs
- SignedPkcs7.cs
- ChannelDispatcher.cs
- PageParserFilter.cs
- BindingsCollection.cs
- dataprotectionpermissionattribute.cs
- RenderTargetBitmap.cs
- BaseCollection.cs
- DrawTreeNodeEventArgs.cs
- SemanticValue.cs
- ParameterElementCollection.cs
- MultipleViewPattern.cs
- SqlErrorCollection.cs
- EntityDataSourceContainerNameItem.cs
- ErrorItem.cs
- SharedUtils.cs
- LockedActivityGlyph.cs
- GlyphTypeface.cs
- SqlCommandBuilder.cs
- HttpCookie.cs
- CursorConverter.cs
- TraceSection.cs
- objectquery_tresulttype.cs
- XPathEmptyIterator.cs
- OdbcReferenceCollection.cs
- ObservableDictionary.cs
- glyphs.cs
- Grid.cs
- SEHException.cs
- LineUtil.cs
- DLinqAssociationProvider.cs
- StylusPointPropertyInfoDefaults.cs
- RequestResponse.cs
- ProcessInfo.cs
- HtmlInputReset.cs
- Schema.cs
- ChannelManager.cs
- TreeNodeEventArgs.cs
- HttpRuntime.cs
- Html32TextWriter.cs
- SRef.cs
- DefaultMemberAttribute.cs
- XmlBinaryWriter.cs
- CommandField.cs
- SQLSingle.cs
- HandlerFactoryWrapper.cs
- TimeZone.cs
- FileDialogPermission.cs
- Fx.cs
- WindowsImpersonationContext.cs
- ClientRoleProvider.cs
- SpecialFolderEnumConverter.cs
- BufferedGraphicsContext.cs
- StatusBarPanel.cs
- DbMetaDataFactory.cs
- HttpCachePolicyWrapper.cs