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
- XmlDataSourceNodeDescriptor.cs
- MaskInputRejectedEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- KoreanLunisolarCalendar.cs
- StringInfo.cs
- SignatureToken.cs
- CheckBoxFlatAdapter.cs
- DrawListViewItemEventArgs.cs
- OracleCommandSet.cs
- SystemSounds.cs
- AddInServer.cs
- ReachPrintTicketSerializerAsync.cs
- KeyBinding.cs
- PriorityChain.cs
- HttpAsyncResult.cs
- PreProcessor.cs
- PropertyTab.cs
- MsmqIntegrationBindingElement.cs
- SafeCryptHandles.cs
- PathFigureCollection.cs
- HtmlButton.cs
- LocalBuilder.cs
- RoleGroup.cs
- ServerIdentity.cs
- Debug.cs
- EditorZone.cs
- OletxCommittableTransaction.cs
- GeneralTransformGroup.cs
- IIS7UserPrincipal.cs
- DataGridViewCheckBoxColumn.cs
- ExternalFile.cs
- SqlDataSource.cs
- InputChannel.cs
- EdgeModeValidation.cs
- Substitution.cs
- DocumentPageTextView.cs
- XmlBufferReader.cs
- EventRecordWrittenEventArgs.cs
- Bits.cs
- UserMapPath.cs
- NativeCppClassAttribute.cs
- MetadataSerializer.cs
- sqlpipe.cs
- TextTrailingWordEllipsis.cs
- ComponentResourceKey.cs
- Screen.cs
- IsolatedStorage.cs
- SupportsEventValidationAttribute.cs
- MatrixUtil.cs
- ComplexPropertyEntry.cs
- ZipArchive.cs
- PathFigureCollectionConverter.cs
- WindowsToolbar.cs
- PageAsyncTaskManager.cs
- QueuedDeliveryRequirementsMode.cs
- DbConnectionClosed.cs
- DeclaredTypeValidator.cs
- RectAnimationUsingKeyFrames.cs
- ComponentEditorPage.cs
- ActivityBindForm.cs
- ObjectNotFoundException.cs
- SynchronizationContext.cs
- XmlQueryOutput.cs
- DeflateEmulationStream.cs
- XmlMemberMapping.cs
- RegexCompiler.cs
- RowSpanVector.cs
- ZipFileInfoCollection.cs
- Literal.cs
- AddingNewEventArgs.cs
- WebDisplayNameAttribute.cs
- HttpHandler.cs
- Int64AnimationBase.cs
- XPathItem.cs
- Win32MouseDevice.cs
- ActionFrame.cs
- SplineQuaternionKeyFrame.cs
- BufferedReceiveManager.cs
- __TransparentProxy.cs
- EdmToObjectNamespaceMap.cs
- DataGridColumn.cs
- Timer.cs
- CheckBox.cs
- BooleanKeyFrameCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- HealthMonitoringSection.cs
- SizeValueSerializer.cs
- SqlFacetAttribute.cs
- SingleAnimation.cs
- InstanceHandleConflictException.cs
- BStrWrapper.cs
- PermissionSetTriple.cs
- OneToOneMappingSerializer.cs
- SqlDataSourceFilteringEventArgs.cs
- PrimitiveXmlSerializers.cs
- HttpContextServiceHost.cs
- TimelineGroup.cs
- ToolTipAutomationPeer.cs
- GridPatternIdentifiers.cs
- XPathBinder.cs