1 instantiation of Stretch
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11676bamlType.DefaultConstructor = 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)
63Stretch stretch,
PresentationFramework (65)
MS\Internal\Ink\PenCursorManager.cs (1)
250db.Stretch = Stretch.None;
System\Windows\Controls\ComboBox.cs (1)
900visualBrush.Stretch = 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)
2991bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch); 7963bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11674typeof(System.Windows.Media.Stretch), 11677bamlType.TypeConverterType = 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) 537internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 548internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 573internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 627Debug.Assert(mode != Stretch.None); 632if (mode != Stretch.Fill && !hasThinDimension) 634if (mode == Stretch.Uniform) 649Debug.Assert(mode == Stretch.UniformToFill); 734if (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)
463if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 2201if ((tA != null) && (tA.Stretch == Stretch.Fill) && (tA.TileMode == TileMode.Tile)) 2221if ((tB != null) && (tB.Stretch == Stretch.Fill)) 2899! 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)
451case Stretch.None: 467case Stretch.Uniform: 472case Stretch.UniformToFill: 481case Stretch.Fill:
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
551visualBrush.Stretch = Stretch.None;