24 references to Maximum
PresentationFramework (24)
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (2)
56ArgumentOutOfRangeException.ThrowIfGreaterThan(val, owner.Maximum); 100return ((RangeBase)Owner).Maximum;
System\Windows\Controls\Primitives\RangeBase.cs (3)
197double max = ctrl.Maximum; 367max = Maximum; 377max = Maximum;
System\Windows\Controls\Primitives\ScrollBar.cs (6)
408newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 549double newValue = Math.Min(Value + SmallChange, Maximum); 567double newValue = Math.Min(Value + LargeChange, Maximum); 584if (Value != Maximum) 586Value = Maximum; 713bool canScrollNew = scrollBar.Maximum > scrollBar.Minimum;
System\Windows\Controls\ProgressBar.cs (1)
164double max = Maximum;
System\Windows\Controls\Slider.cs (12)
607double max = slider.Maximum; 653double max = slider.Maximum; 971double range = Maximum - Minimum; 996Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1022Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1043double range = Maximum - Minimum; 1151double next = Maximum; 1188next = Math.Min(Maximum, previous + TickFrequency); 1208double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1214&& !( greaterThan && value == Maximum) // Stop if searching up if already at Max 1382this.SetCurrentValueInternal(ValueProperty, this.Maximum); 1407this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));