This documentation is archived and is not being maintained.
RangeBase::Maximum Property
Visual Studio 2010
Gets or sets the highest possible Value of the range element.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
[BindableAttribute(true)] public: property double Maximum { double get (); void set (double value); }
<object Maximum="double" .../>
Property Value
Type: System::DoubleThe highest possible Value of the range element. The default is 1.
Slider overrides the metadata of this property and sets its default to 10. ProgressBar overrides the metadata of this property and sets its default to 100. For more information, see Dependency Properties Overview.
RangeBase controls such as Slider and ProgressBar inherit the RangeBase properties. The following example shows a Slider that uses the Maximum property.
<Slider Name="slider1" Width="100" Orientation="Horizontal" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Minimum="1" Maximum="20" TickPlacement="Both" TickFrequency="2" AutoToolTipPlacement="BottomRight"/>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: