Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ProgressBarAutomationPeer.cs / 1305600 / 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
- EditorZone.cs
- ValidatorUtils.cs
- QueryOutputWriter.cs
- TemplateXamlParser.cs
- FastEncoderStatics.cs
- PointAnimationClockResource.cs
- counter.cs
- QilLoop.cs
- StateMachineSubscriptionManager.cs
- DecoderBestFitFallback.cs
- EnglishPluralizationService.cs
- WebPartDescription.cs
- Fonts.cs
- FilterableAttribute.cs
- DrawingContextDrawingContextWalker.cs
- TargetConverter.cs
- LayoutTableCell.cs
- XmlSchemaComplexContentExtension.cs
- TemporaryBitmapFile.cs
- HelpKeywordAttribute.cs
- OracleInternalConnection.cs
- WinEventHandler.cs
- EntityViewGenerator.cs
- IDQuery.cs
- DrawingContext.cs
- VolatileEnlistmentMultiplexing.cs
- RemoteWebConfigurationHost.cs
- DPAPIProtectedConfigurationProvider.cs
- FastPropertyAccessor.cs
- HyperLinkColumn.cs
- ImageIndexEditor.cs
- IndentedTextWriter.cs
- FixUpCollection.cs
- SiteMapNodeCollection.cs
- GlyphRunDrawing.cs
- Context.cs
- Parser.cs
- SqlFunctionAttribute.cs
- TypeExtensionSerializer.cs
- OleDbRowUpdatedEvent.cs
- PageThemeCodeDomTreeGenerator.cs
- FrameworkElementAutomationPeer.cs
- TextChangedEventArgs.cs
- MbpInfo.cs
- Parameter.cs
- CompatibleIComparer.cs
- _FtpDataStream.cs
- SectionRecord.cs
- ChildTable.cs
- ReliableSessionBindingElement.cs
- ObjectReferenceStack.cs
- NameValueSectionHandler.cs
- SoapCommonClasses.cs
- StickyNote.cs
- UriTemplateEquivalenceComparer.cs
- PrintPageEvent.cs
- ObjectDataSource.cs
- DataGridRowEventArgs.cs
- MessageTraceRecord.cs
- WebPartDeleteVerb.cs
- PropertyMetadata.cs
- EntityAdapter.cs
- WsdlInspector.cs
- CrossAppDomainChannel.cs
- FacetValues.cs
- mediaeventshelper.cs
- MimeMapping.cs
- Convert.cs
- SmiConnection.cs
- ApplicationActivator.cs
- XhtmlBasicControlAdapter.cs
- Window.cs
- ArgumentValue.cs
- TextProviderWrapper.cs
- ElementAction.cs
- TypeElement.cs
- OptimizedTemplateContent.cs
- PartialCachingControl.cs
- ConfigurationStrings.cs
- mil_sdk_version.cs
- AssemblyBuilder.cs
- Proxy.cs
- FieldValue.cs
- BuildProviderAppliesToAttribute.cs
- HandlerFactoryCache.cs
- FrameworkElement.cs
- RowToFieldTransformer.cs
- DetailsViewModeEventArgs.cs
- ContextBase.cs
- ConnectionPoolManager.cs
- CreateUserErrorEventArgs.cs
- SHA512.cs
- ArithmeticException.cs
- TrackPointCollection.cs
- ListBoxDesigner.cs
- HtmlToClrEventProxy.cs
- DbReferenceCollection.cs
- SoapSchemaImporter.cs
- DefaultCompensation.cs
- ImageCodecInfoPrivate.cs