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
- InternalSafeNativeMethods.cs
- TimeoutValidationAttribute.cs
- Adorner.cs
- PromptEventArgs.cs
- BindingRestrictions.cs
- DbBuffer.cs
- SqlDataSourceCommandEventArgs.cs
- XDRSchema.cs
- IndependentAnimationStorage.cs
- OdbcConnectionFactory.cs
- Context.cs
- EndOfStreamException.cs
- DataRelation.cs
- AddingNewEventArgs.cs
- FixedSOMPageConstructor.cs
- ClientRolePrincipal.cs
- DrawingAttributesDefaultValueFactory.cs
- InternalCache.cs
- ListControlConvertEventArgs.cs
- DuplicateDetector.cs
- Query.cs
- XMLSyntaxException.cs
- KoreanLunisolarCalendar.cs
- DataGridCell.cs
- CompilerParameters.cs
- ExtensionFile.cs
- Thread.cs
- SqlException.cs
- DataBindingCollection.cs
- UndoManager.cs
- Brushes.cs
- SessionStateItemCollection.cs
- DnsEndpointIdentity.cs
- MultiAsyncResult.cs
- InteropBitmapSource.cs
- CoreChannel.cs
- SplitterPanel.cs
- Timeline.cs
- VectorCollectionConverter.cs
- ChannelManager.cs
- KoreanCalendar.cs
- XamlInt32CollectionSerializer.cs
- BitStack.cs
- TextEditorTables.cs
- InertiaTranslationBehavior.cs
- WebPartVerb.cs
- CellQuery.cs
- BackStopAuthenticationModule.cs
- DataGridViewCellFormattingEventArgs.cs
- TextEditorCopyPaste.cs
- ProfileGroupSettings.cs
- MenuBase.cs
- RemoteWebConfigurationHostServer.cs
- ComPersistableTypeElement.cs
- CustomPeerResolverService.cs
- DigitShape.cs
- ProtocolState.cs
- ReadOnlyHierarchicalDataSource.cs
- XPathSelectionIterator.cs
- DataGridBeginningEditEventArgs.cs
- LinqDataSource.cs
- Application.cs
- DesignerUtils.cs
- NavigationProperty.cs
- WindowsTokenRoleProvider.cs
- ButtonColumn.cs
- ClipboardProcessor.cs
- ConfigurationSettings.cs
- AuthenticatedStream.cs
- FixedDocument.cs
- ChangePasswordDesigner.cs
- ToolStripPanelRow.cs
- FieldNameLookup.cs
- DBSqlParserTable.cs
- ComponentDispatcherThread.cs
- Contracts.cs
- SettingsContext.cs
- HtmlInputImage.cs
- SafeHandles.cs
- MessageSecurityOverHttpElement.cs
- WindowsListBox.cs
- ColorMatrix.cs
- HebrewCalendar.cs
- SiteMapNode.cs
- FloatUtil.cs
- ObjectMemberMapping.cs
- X509SecurityTokenAuthenticator.cs
- ProtocolProfile.cs
- OpCodes.cs
- LinqDataSourceHelper.cs
- RandomDelaySendsAsyncResult.cs
- SqlConnection.cs
- HostUtils.cs
- WmlImageAdapter.cs
- SqlTriggerContext.cs
- ISSmlParser.cs
- CellConstant.cs
- CommandPlan.cs
- DesignerTextViewAdapter.cs
- PageStatePersister.cs