1 instantiation of Stretch
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11674bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Stretch(); };
88 references to Stretch
PresentationCore (16)
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (6)
234public Stretch Stretch 238return (Stretch) GetValue(StretchProperty); 398internal const Stretch c_Stretch = Stretch.Fill; 480typeof(Stretch), 482Stretch.Fill,
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
107Stretch stretch,
Graphics\include\Generated\wgx_commands.cs (3)
954[FieldOffset(124)] internal Stretch Stretch; 978[FieldOffset(124)] internal Stretch Stretch; 1002[FieldOffset(124)] internal Stretch Stretch;
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);
PresentationFramework (66)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
985visualBrush.Stretch = Stretch.None;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
272db.Stretch = Stretch.None;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
912visualBrush.Stretch = Stretch.None;
src\Framework\System\Windows\Controls\Image.cs (3)
94public Stretch Stretch 96get { return (Stretch) GetValue(StretchProperty); } 404Stretch.Uniform,
src\Framework\System\Windows\Controls\MediaElement.cs (3)
96Stretch.Uniform, 308public Stretch Stretch 310get { return (Stretch) GetValue(StretchProperty); }
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
128public Stretch Stretch 130get { return (Stretch)GetValue(StretchProperty); } 165Stretch.Uniform,
src\Framework\System\Windows\Controls\ViewBox.cs (17)
110typeof(Stretch), // Property type 112new FrameworkPropertyMetadata(Stretch.Uniform, FrameworkPropertyMetadataOptions.AffectsMeasure), 117Stretch s = (Stretch)value; 118return ( s == Stretch.Uniform 119|| s == Stretch.None 120|| s == Stretch.Fill 121|| s == Stretch.UniformToFill); 279public Stretch Stretch 281get { return (Stretch)GetValue(StretchProperty); } 383Stretch stretch, 393if ( (stretch == Stretch.Uniform || stretch == Stretch.UniformToFill || stretch == Stretch.Fill) 407case Stretch.Uniform: //Find minimum scale that we use for both axes 412case Stretch.UniformToFill: //Find maximum scale that we use for both axes 417case Stretch.Fill: //We already computed the fill scale factors above, so just use them
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (5)
2067System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2273private System.Windows.Media.Stretch GetImageStretch(string imageStretch) 2277return System.Windows.Media.Stretch.Fill; 2281return System.Windows.Media.Stretch.UniformToFill; 2285return System.Windows.Media.Stretch.Uniform;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2985bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch); 7923bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11672typeof(System.Windows.Media.Stretch), 11675bamlType.TypeConverterType = typeof(System.Windows.Media.Stretch);
src\Framework\System\Windows\Shapes\Ellipse.cs (6)
47StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(Stretch.Fill)); 90if (Stretch == Stretch.UniformToFill) 133case Stretch.None: 138case Stretch.Fill: 143case Stretch.Uniform: 155case Stretch.UniformToFill:
src\Framework\System\Windows\Shapes\Rectangle.cs (6)
47StretchProperty.OverrideMetadata(typeof(Rectangle), new FrameworkPropertyMetadata(Stretch.Fill)); 142if (Stretch == Stretch.UniformToFill) 186case Stretch.None: 191case Stretch.Fill: 196case Stretch.Uniform: 208case Stretch.UniformToFill:
src\Framework\System\Windows\Shapes\Shape.cs (16)
54typeof(Stretch), // Property type 56new FrameworkPropertyMetadata(Stretch.None, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange)); 61public Stretch Stretch 63get { return (Stretch)GetValue(StretchProperty); } 367Stretch mode = Stretch; 369if (mode == Stretch.None) 395Stretch mode = Stretch; 397if (mode == Stretch.None) 547internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 558internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 583internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 637Debug.Assert(mode != Stretch.None); 642if (mode != Stretch.Fill && !hasThinDimension) 644if (mode == Stretch.Uniform) 659Debug.Assert(mode == Stretch.UniformToFill); 744if (Stretch != Stretch.None)
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
81newBrush.Stretch = Stretch.None;
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86newBrush.Stretch = Stretch.None;
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86newBrush.Stretch = Stretch.None;
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86newBrush.Stretch = Stretch.None;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
218controlBrush.Stretch = Stretch.Uniform;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
221icon.Stretch = Stretch.Uniform;