1 instantiation of Stretch
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12985DefaultConstructor = 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)
950[FieldOffset(124)] internal Stretch Stretch; 974[FieldOffset(124)] internal Stretch Stretch; 998[FieldOffset(124)] internal Stretch Stretch;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Generated\StretchValidation.cs (6)
35Stretch value = (Stretch) valueObject; 37return (value == Stretch.None) || 38(value == Stretch.Fill) || 39(value == Stretch.Uniform) || 40(value == Stretch.UniformToFill);
System\Windows\Media\Generated\TileBrush.cs (6)
198public Stretch Stretch 202return (Stretch) GetValue(StretchProperty); 362internal const Stretch c_Stretch = Stretch.Fill; 444typeof(Stretch), 446Stretch.Fill,
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
61Stretch stretch,
PresentationFramework (65)
MS\Internal\Ink\PenCursorManager.cs (1)
251Stretch = Stretch.None,
System\Windows\Controls\ComboBox.cs (1)
901Stretch = Stretch.None,
System\Windows\Controls\Image.cs (3)
81public Stretch Stretch 83get { return (Stretch) GetValue(StretchProperty); } 391Stretch.Uniform,
System\Windows\Controls\MediaElement.cs (3)
84Stretch.Uniform, 296public Stretch Stretch 298get { return (Stretch) GetValue(StretchProperty); }
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
122public Stretch Stretch 124get { return (Stretch)GetValue(StretchProperty); } 159Stretch.Uniform,
System\Windows\Controls\ViewBox.cs (17)
96typeof(Stretch), // Property type 98new FrameworkPropertyMetadata(Stretch.Uniform, FrameworkPropertyMetadataOptions.AffectsMeasure), 103Stretch s = (Stretch)value; 104return ( s == Stretch.Uniform 105|| s == Stretch.None 106|| s == Stretch.Fill 107|| s == Stretch.UniformToFill); 265public Stretch Stretch 267get { return (Stretch)GetValue(StretchProperty); } 368Stretch stretch, 378if ( (stretch == Stretch.Uniform || stretch == Stretch.UniformToFill || stretch == Stretch.Fill) 392case Stretch.Uniform: //Find minimum scale that we use for both axes 397case Stretch.UniformToFill: //Find maximum scale that we use for both axes 402case Stretch.Fill: //We already computed the fill scale factors above, so just use them
System\Windows\Documents\XamlToRtfWriter.cs (5)
2065System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2271private System.Windows.Media.Stretch GetImageStretch(string imageStretch) 2275return System.Windows.Media.Stretch.Fill; 2279return System.Windows.Media.Stretch.UniformToFill; 2283return System.Windows.Media.Stretch.Uniform;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
3100TypeConverterType = typeof(System.Windows.Media.Stretch) 8608TypeConverterType = typeof(System.Windows.Media.Stretch)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
12982typeof(System.Windows.Media.Stretch), 12986TypeConverterType = typeof(System.Windows.Media.Stretch)
System\Windows\Shapes\Ellipse.cs (6)
35StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(Stretch.Fill)); 78if (Stretch == Stretch.UniformToFill) 121case Stretch.None: 126case Stretch.Fill: 131case Stretch.Uniform: 143case Stretch.UniformToFill:
System\Windows\Shapes\Rectangle.cs (6)
36StretchProperty.OverrideMetadata(typeof(Rectangle), new FrameworkPropertyMetadata(Stretch.Fill)); 131if (Stretch == Stretch.UniformToFill) 175case Stretch.None: 180case Stretch.Fill: 185case Stretch.Uniform: 197case Stretch.UniformToFill:
System\Windows\Shapes\Shape.cs (16)
45typeof(Stretch), // Property type 47new FrameworkPropertyMetadata(Stretch.None, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange)); 52public Stretch Stretch 54get { return (Stretch)GetValue(StretchProperty); } 358Stretch mode = Stretch; 360if (mode == Stretch.None) 386Stretch mode = Stretch; 388if (mode == Stretch.None) 539internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 550internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 575internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 629Debug.Assert(mode != Stretch.None); 634if (mode != Stretch.Fill && !hasThinDimension) 636if (mode == Stretch.Uniform) 651Debug.Assert(mode == Stretch.UniformToFill); 736if (Stretch != Stretch.None)
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
74newBrush.Stretch = Stretch.None;
PresentationFramework.Aero2 (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
74newBrush.Stretch = Stretch.None;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
69newBrush.Stretch = Stretch.None;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
69newBrush.Stretch = Stretch.None;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
69newBrush.Stretch = Stretch.None;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
69newBrush.Stretch = Stretch.None;
ReachFramework (12)
AlphaFlattener\BrushProxy.cs (4)
464if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 2203if ((tA != null) && (tA.Stretch == Stretch.Fill) && (tA.TileMode == TileMode.Tile)) 2223if ((tB != null) && (tB.Stretch == Stretch.Fill)) 2902! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None)
AlphaFlattener\Utility.cs (4)
1669Debug.Assert(IsValidViewbox(viewbox, brush.Stretch != Stretch.None) && 1678case Stretch.Uniform: 1683case Stretch.Fill: 1687case Stretch.UniformToFill:
Serialization\VisualSerializer.cs (4)
451case Stretch.None: 467case Stretch.Uniform: 472case Stretch.UniformToFill: 481case Stretch.Fill:
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
552Stretch = Stretch.None,