1 instantiation of Stretch
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11678bamlType.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)
953[FieldOffset(124)] internal Stretch Stretch; 977[FieldOffset(124)] internal Stretch Stretch; 1001[FieldOffset(124)] internal Stretch Stretch;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Generated\StretchValidation.cs (6)
40Stretch value = (Stretch) valueObject; 42return (value == Stretch.None) || 43(value == Stretch.Fill) || 44(value == Stretch.Uniform) || 45(value == Stretch.UniformToFill);
System\Windows\Media\Generated\TileBrush.cs (6)
228public Stretch Stretch 232return (Stretch) GetValue(StretchProperty); 392internal const Stretch c_Stretch = Stretch.Fill; 474typeof(Stretch), 476Stretch.Fill,
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
75Stretch stretch,
PresentationFramework (65)
MS\Internal\Ink\PenCursorManager.cs (1)
255db.Stretch = Stretch.None;
System\Windows\Controls\ComboBox.cs (1)
910visualBrush.Stretch = Stretch.None;
System\Windows\Controls\Image.cs (3)
89public Stretch Stretch 91get { return (Stretch) GetValue(StretchProperty); } 399Stretch.Uniform,
System\Windows\Controls\MediaElement.cs (3)
91Stretch.Uniform, 303public Stretch Stretch 305get { return (Stretch) GetValue(StretchProperty); }
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
126public Stretch Stretch 128get { return (Stretch)GetValue(StretchProperty); } 163Stretch.Uniform,
System\Windows\Controls\ViewBox.cs (17)
102typeof(Stretch), // Property type 104new FrameworkPropertyMetadata(Stretch.Uniform, FrameworkPropertyMetadataOptions.AffectsMeasure), 109Stretch s = (Stretch)value; 110return ( s == Stretch.Uniform 111|| s == Stretch.None 112|| s == Stretch.Fill 113|| s == Stretch.UniformToFill); 271public Stretch Stretch 273get { return (Stretch)GetValue(StretchProperty); } 374Stretch stretch, 384if ( (stretch == Stretch.Uniform || stretch == Stretch.UniformToFill || stretch == Stretch.Fill) 398case Stretch.Uniform: //Find minimum scale that we use for both axes 403case Stretch.UniformToFill: //Find maximum scale that we use for both axes 408case Stretch.Fill: //We already computed the fill scale factors above, so just use them
System\Windows\Documents\XamlToRtfWriter.cs (5)
2066System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2272private System.Windows.Media.Stretch GetImageStretch(string imageStretch) 2276return System.Windows.Media.Stretch.Fill; 2280return System.Windows.Media.Stretch.UniformToFill; 2284return System.Windows.Media.Stretch.Uniform;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2993bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch); 7965bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11676typeof(System.Windows.Media.Stretch), 11679bamlType.TypeConverterType = typeof(System.Windows.Media.Stretch);
System\Windows\Shapes\Ellipse.cs (6)
44StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(Stretch.Fill)); 87if (Stretch == Stretch.UniformToFill) 130case Stretch.None: 135case Stretch.Fill: 140case Stretch.Uniform: 152case Stretch.UniformToFill:
System\Windows\Shapes\Rectangle.cs (6)
44StretchProperty.OverrideMetadata(typeof(Rectangle), new FrameworkPropertyMetadata(Stretch.Fill)); 139if (Stretch == Stretch.UniformToFill) 183case Stretch.None: 188case Stretch.Fill: 193case Stretch.Uniform: 205case Stretch.UniformToFill:
System\Windows\Shapes\Shape.cs (16)
50typeof(Stretch), // Property type 52new FrameworkPropertyMetadata(Stretch.None, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange)); 57public Stretch Stretch 59get { return (Stretch)GetValue(StretchProperty); } 363Stretch mode = Stretch; 365if (mode == Stretch.None) 391Stretch mode = Stretch; 393if (mode == Stretch.None) 542internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 553internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 578internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 632Debug.Assert(mode != Stretch.None); 637if (mode != Stretch.Fill && !hasThinDimension) 639if (mode == Stretch.Uniform) 654Debug.Assert(mode == Stretch.UniformToFill); 739if (Stretch != Stretch.None)
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
76newBrush.Stretch = Stretch.None;
PresentationFramework.Aero2 (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
76newBrush.Stretch = Stretch.None;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
71newBrush.Stretch = Stretch.None;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
71newBrush.Stretch = Stretch.None;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
71newBrush.Stretch = Stretch.None;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
71newBrush.Stretch = Stretch.None;
ReachFramework (12)
AlphaFlattener\BrushProxy.cs (4)
467if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 2205if ((tA != null) && (tA.Stretch == Stretch.Fill) && (tA.TileMode == TileMode.Tile)) 2225if ((tB != null) && (tB.Stretch == Stretch.Fill)) 2903! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None)
AlphaFlattener\Utility.cs (4)
1679Debug.Assert(IsValidViewbox(viewbox, brush.Stretch != Stretch.None) && 1688case Stretch.Uniform: 1693case Stretch.Fill: 1697case Stretch.UniformToFill:
Serialization\VisualSerializer.cs (4)
459case Stretch.None: 475case Stretch.Uniform: 480case Stretch.UniformToFill: 489case Stretch.Fill:
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
553visualBrush.Stretch = Stretch.None;