24 references to Maximum
PresentationFramework (24)
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (2)
57ArgumentOutOfRangeException.ThrowIfGreaterThan(val, owner.Maximum); 101return ((RangeBase)Owner).Maximum;
System\Windows\Controls\Primitives\RangeBase.cs (3)
198double max = ctrl.Maximum; 368max = Maximum; 378max = Maximum;
System\Windows\Controls\Primitives\ScrollBar.cs (6)
409newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 550double newValue = Math.Min(Value + SmallChange, Maximum); 568double newValue = Math.Min(Value + LargeChange, Maximum); 585if (Value != Maximum) 587Value = Maximum; 714bool canScrollNew = scrollBar.Maximum > scrollBar.Minimum;
System\Windows\Controls\ProgressBar.cs (1)
165double max = Maximum;
System\Windows\Controls\Slider.cs (12)
608double max = slider.Maximum; 654double max = slider.Maximum; 972double range = Maximum - Minimum; 997Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1023Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1044double range = Maximum - Minimum; 1152double next = Maximum; 1189next = Math.Min(Maximum, previous + TickFrequency); 1209double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1215&& !( greaterThan && value == Maximum) // Stop if searching up if already at Max 1383this.SetCurrentValueInternal(ValueProperty, this.Maximum); 1408this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));