24 references to Maximum
PresentationFramework (24)
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (2)
68ArgumentOutOfRangeException.ThrowIfGreaterThan(val, owner.Maximum); 112return ((RangeBase)Owner).Maximum;
System\Windows\Controls\Primitives\RangeBase.cs (3)
216double max = ctrl.Maximum; 387max = Maximum; 397max = Maximum;
System\Windows\Controls\Primitives\ScrollBar.cs (6)
425newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 564double newValue = Math.Min(Value + SmallChange, Maximum); 582double newValue = Math.Min(Value + LargeChange, Maximum); 599if (Value != Maximum) 601Value = Maximum; 728bool canScrollNew = scrollBar.Maximum > scrollBar.Minimum;
System\Windows\Controls\ProgressBar.cs (1)
175double max = Maximum;
System\Windows\Controls\Slider.cs (12)
637double max = slider.Maximum; 683double max = slider.Maximum; 999double range = Maximum - Minimum; 1024Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1050Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1071double range = Maximum - Minimum; 1179double next = Maximum; 1216next = Math.Min(Maximum, previous + TickFrequency); 1236double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1242&& !( greaterThan && value == Maximum) // Stop if searching up if already at Max 1410this.SetCurrentValueInternal(ValueProperty, this.Maximum); 1435this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));