1 instantiation of Stretch
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12984DefaultConstructor = delegate () { return new System.Windows.Media.Stretch(); },
100 references to Stretch
PresentationCore (16)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\Generated\wgx_commands.cs (3)
949[FieldOffset(124)] internal Stretch Stretch; 973[FieldOffset(124)] internal Stretch Stretch; 997[FieldOffset(124)] internal Stretch Stretch;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Generated\StretchValidation.cs (6)
27Stretch value = (Stretch) valueObject; 29return (value == Stretch.None) || 30(value == Stretch.Fill) || 31(value == Stretch.Uniform) || 32(value == Stretch.UniformToFill);
System\Windows\Media\Generated\TileBrush.cs (6)
210public Stretch Stretch 214return (Stretch) GetValue(StretchProperty); 374internal const Stretch c_Stretch = Stretch.Fill; 455typeof(Stretch), 457Stretch.Fill,
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
60Stretch stretch,
PresentationFramework (65)
MS\Internal\Ink\PenCursorManager.cs (1)
250Stretch = Stretch.None,
System\Windows\Controls\ComboBox.cs (1)
892Stretch = Stretch.None,
System\Windows\Controls\Image.cs (3)
80public Stretch Stretch 82get { return (Stretch) GetValue(StretchProperty); } 390Stretch.Uniform,
System\Windows\Controls\MediaElement.cs (3)
83Stretch.Uniform, 295public Stretch Stretch 297get { return (Stretch) GetValue(StretchProperty); }
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
121public Stretch Stretch 123get { return (Stretch)GetValue(StretchProperty); } 158Stretch.Uniform,
System\Windows\Controls\ViewBox.cs (17)
95typeof(Stretch), // Property type 97new FrameworkPropertyMetadata(Stretch.Uniform, FrameworkPropertyMetadataOptions.AffectsMeasure), 102Stretch s = (Stretch)value; 103return ( s == Stretch.Uniform 104|| s == Stretch.None 105|| s == Stretch.Fill 106|| s == Stretch.UniformToFill); 264public Stretch Stretch 266get { return (Stretch)GetValue(StretchProperty); } 367Stretch stretch, 377if ( (stretch == Stretch.Uniform || stretch == Stretch.UniformToFill || stretch == Stretch.Fill) 391case Stretch.Uniform: //Find minimum scale that we use for both axes 396case Stretch.UniformToFill: //Find maximum scale that we use for both axes 401case Stretch.Fill: //We already computed the fill scale factors above, so just use them
System\Windows\Documents\XamlToRtfWriter.cs (5)
2064System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2270private System.Windows.Media.Stretch GetImageStretch(string imageStretch) 2274return System.Windows.Media.Stretch.Fill; 2278return System.Windows.Media.Stretch.UniformToFill; 2282return System.Windows.Media.Stretch.Uniform;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
3099TypeConverterType = typeof(System.Windows.Media.Stretch) 8607TypeConverterType = typeof(System.Windows.Media.Stretch)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
12981typeof(System.Windows.Media.Stretch), 12985TypeConverterType = typeof(System.Windows.Media.Stretch)
System\Windows\Shapes\Ellipse.cs (6)
34StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(Stretch.Fill)); 77if (Stretch == Stretch.UniformToFill) 120case Stretch.None: 125case Stretch.Fill: 130case Stretch.Uniform: 142case Stretch.UniformToFill:
System\Windows\Shapes\Rectangle.cs (6)
35StretchProperty.OverrideMetadata(typeof(Rectangle), new FrameworkPropertyMetadata(Stretch.Fill)); 130if (Stretch == Stretch.UniformToFill) 174case Stretch.None: 179case Stretch.Fill: 184case Stretch.Uniform: 196case Stretch.UniformToFill:
System\Windows\Shapes\Shape.cs (16)
44typeof(Stretch), // Property type 46new FrameworkPropertyMetadata(Stretch.None, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange)); 51public Stretch Stretch 53get { return (Stretch)GetValue(StretchProperty); } 357Stretch mode = Stretch; 359if (mode == Stretch.None) 385Stretch mode = Stretch; 387if (mode == Stretch.None) 538internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 549internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 574internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 628Debug.Assert(mode != Stretch.None); 633if (mode != Stretch.Fill && !hasThinDimension) 635if (mode == Stretch.Uniform) 650Debug.Assert(mode == Stretch.UniformToFill); 735if (Stretch != Stretch.None)
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
73newBrush.Stretch = Stretch.None;
PresentationFramework.Aero2 (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
73newBrush.Stretch = Stretch.None;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
68newBrush.Stretch = Stretch.None;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
68newBrush.Stretch = Stretch.None;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
68newBrush.Stretch = Stretch.None;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
68newBrush.Stretch = Stretch.None;
ReachFramework (12)
AlphaFlattener\BrushProxy.cs (4)
463if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 2199if ((tA != null) && (tA.Stretch == Stretch.Fill) && (tA.TileMode == TileMode.Tile)) 2219if ((tB != null) && (tB.Stretch == Stretch.Fill)) 2898! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None)
AlphaFlattener\Utility.cs (4)
1668Debug.Assert(IsValidViewbox(viewbox, brush.Stretch != Stretch.None) && 1677case Stretch.Uniform: 1682case Stretch.Fill: 1686case Stretch.UniformToFill:
Serialization\VisualSerializer.cs (4)
450case Stretch.None: 466case Stretch.Uniform: 471case Stretch.UniformToFill: 480case Stretch.Fill:
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
550Stretch = Stretch.None,