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)
204double max = ctrl.Maximum; 375max = Maximum; 385max = Maximum;
System\Windows\Controls\Primitives\ScrollBar.cs (6)
409newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 548double newValue = Math.Min(Value + SmallChange, Maximum); 566double newValue = Math.Min(Value + LargeChange, Maximum); 583if (Value != Maximum) 585Value = Maximum; 712bool canScrollNew = scrollBar.Maximum > scrollBar.Minimum;
System\Windows\Controls\ProgressBar.cs (1)
168double max = Maximum;
System\Windows\Controls\Slider.cs (12)
626double max = slider.Maximum; 672double max = slider.Maximum; 988double range = Maximum - Minimum; 1013Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1039Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1060double range = Maximum - Minimum; 1168double next = Maximum; 1205next = Math.Min(Maximum, previous + TickFrequency); 1225double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1231&& !( greaterThan && value == Maximum) // Stop if searching up if already at Max 1399this.SetCurrentValueInternal(ValueProperty, this.Maximum); 1424this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));