73 references to IsPositiveInfinity
mscorlib (1)
system\math.cs (1)
516if (a != 1 && (newBase == 0 || Double.IsPositiveInfinity(newBase)))
PresentationCore (10)
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (1)
2375if (Double.IsPositiveInfinity(metrics.Width))
Core\CSharp\System\Windows\LayoutManager.cs (2)
487if (double.IsPositiveInfinity(element.PreviousConstraint.Width)) 490if (double.IsPositiveInfinity(element.PreviousConstraint.Height))
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphCache.cs (1)
197if (maxLineWidth == 0 || double.IsPositiveInfinity(maxLineWidth))
Core\CSharp\System\Windows\UIElement.cs (6)
688if (double.IsPositiveInfinity(desiredSize.Width) || double.IsPositiveInfinity(desiredSize.Height)) 809if (double.IsPositiveInfinity(finalRect.Width) 810|| double.IsPositiveInfinity(finalRect.Height) 1420return ( (!DoubleUtil.IsNaN(v.X) && !Double.IsPositiveInfinity(v.X) && !Double.IsNegativeInfinity(v.X)) 1421&& (!DoubleUtil.IsNaN(v.Y) && !Double.IsPositiveInfinity(v.Y) && !Double.IsNegativeInfinity(v.Y)));
PresentationFramework (51)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
217if (double.IsPositiveInfinity(pageSize.Width))
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
305if (vrCur < TextDpi.ToTextDpi(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight))
src\Framework\System\Windows\Controls\DataGrid.cs (1)
210return !(value < 0d || DoubleUtil.IsNaN(value) || Double.IsPositiveInfinity(value));
src\Framework\System\Windows\Controls\DataGridColumn.cs (2)
444if (double.IsPositiveInfinity(transferValue) && 459return !(value < 0d || DoubleUtil.IsNaN(value) || Double.IsPositiveInfinity(value));
src\Framework\System\Windows\Controls\DefinitionBase.cs (1)
221return (!DoubleUtil.IsNaN(v) && v >= 0.0d && !Double.IsPositiveInfinity(v));
src\Framework\System\Windows\Controls\Grid.cs (7)
450bool sizeToContentU = double.IsPositiveInfinity(constraint.Width); 451bool sizeToContentV = double.IsPositiveInfinity(constraint.Height); 1832if (Double.IsPositiveInfinity(maxStar)) 1894if (!Double.IsPositiveInfinity(effectiveMaxSize)) 2414if (Double.IsPositiveInfinity(maxStar)) 2472if (!Double.IsPositiveInfinity(effectiveMaxSize)) 3316return (Double.IsPositiveInfinity(def.UserSize.Value)) ? 1.0 : 0.0;
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
268return delta > 0.0 && !Double.IsPositiveInfinity(delta);
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
51return (DoubleUtil.IsNaN(v)) || (DoubleUtil.GreaterThanOrClose(v, 0d) && !Double.IsPositiveInfinity(v));
src\Framework\System\Windows\Controls\Stack.cs (1)
1000else if (Double.IsPositiveInfinity(offset))
src\Framework\System\Windows\Controls\ViewBox.cs (2)
390bool isConstrainedWidth = !Double.IsPositiveInfinity(availableSize.Width); 391bool isConstrainedHeight = !Double.IsPositiveInfinity(availableSize.Height);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (9)
4598if (Double.IsPositiveInfinity(factor)) 9525if (Double.IsPositiveInfinity(constraint.Height)) 9552if (Double.IsPositiveInfinity(constraint.Width)) 9570if (!Double.IsPositiveInfinity(constraint.Width)) 9575if (!Double.IsPositiveInfinity(constraint.Height)) 10377if (Double.IsPositiveInfinity(constraint.Height)) 10404if (Double.IsPositiveInfinity(constraint.Width)) 10422if (!Double.IsPositiveInfinity(constraint.Width)) 10427if (!Double.IsPositiveInfinity(constraint.Height))
src\Framework\System\Windows\Controls\WrapPanel.cs (1)
81return (DoubleUtil.IsNaN(v)) || (v >= 0.0d && !Double.IsPositiveInfinity(v));
src\Framework\System\Windows\CornerRadius.cs (4)
217if (Double.IsPositiveInfinity(_topLeft) || Double.IsPositiveInfinity(_topRight) || Double.IsPositiveInfinity(_bottomLeft) || Double.IsPositiveInfinity(_bottomRight))
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1573if (!Double.IsPositiveInfinity(value) && (value < 0 || value > maxSize))
src\Framework\System\Windows\FrameworkElement.cs (6)
3460return (DoubleUtil.IsNaN(v)) || (v >= 0.0d && !Double.IsPositiveInfinity(v)); 3466return (!DoubleUtil.IsNaN(v) && v >= 0.0d && !Double.IsPositiveInfinity(v)); 4906double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 4907double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight); 5243double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 5244double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight);
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
232if (Double.IsPositiveInfinity(swConstraint.Width)) 237if (Double.IsPositiveInfinity(swConstraint.Height))
src\Framework\System\Windows\Thickness.cs (4)
170if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom))
src\Framework\System\Windows\Window.cs (6)
2854if (!Double.IsPositiveInfinity(maxSizeDeviceUnits.X) && (sizeDeviceUnits.Width > maxSizeDeviceUnits.X)) 2860if (!Double.IsPositiveInfinity(minSizeDeviceUnits.Y) && (sizeDeviceUnits.Height > maxSizeDeviceUnits.Y)) 3558if (!Double.IsPositiveInfinity(MaxWidth)) 3580if (!Double.IsPositiveInfinity(MaxHeight)) 5951if (!Double.IsPositiveInfinity(l) && !DoubleUtil.IsNaN(l) && 5962if (Double.IsPositiveInfinity(length) ||
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (4)
576return (thickness.Left >= 0 && !double.IsPositiveInfinity(thickness.Left) && 577thickness.Right >= 0 && !double.IsPositiveInfinity(thickness.Right) && 578thickness.Top >= 0 && !double.IsPositiveInfinity(thickness.Top) && 579thickness.Bottom >= 0 && !double.IsPositiveInfinity(thickness.Bottom));
System (2)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
2028else if( double.IsPositiveInfinity(d)) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1239else if( double.IsPositiveInfinity(d)) {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2077isDefault = (double.IsPositiveInfinity(height));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2077isDefault = (double.IsPositiveInfinity(height));
System.Data.Entity (1)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1094else if(double.IsPositiveInfinity(value))
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
71if (0.5 <= dblVal && !double.IsPositiveInfinity(dblVal)) {
System.Xml (1)
System\Xml\XmlConvert.cs (1)
735if (Double.IsPositiveInfinity(value)) return "INF";