|
|
@ -31,11 +31,14 @@ namespace Perspex.Direct2D1.RenderTests.Controls |
|
|
Padding = new Thickness(20, 8), |
|
|
Padding = new Thickness(20, 8), |
|
|
Width = 200, |
|
|
Width = 200, |
|
|
Height = 200, |
|
|
Height = 200, |
|
|
Content = new Image |
|
|
Content = new Border |
|
|
{ |
|
|
{ |
|
|
Background = Brushes.Red, |
|
|
Background = Brushes.Red, |
|
|
Source = this.bitmap, |
|
|
Content = new Image |
|
|
Stretch = Stretch.None, |
|
|
{ |
|
|
|
|
|
Source = this.bitmap, |
|
|
|
|
|
Stretch = Stretch.None, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@ -51,11 +54,14 @@ namespace Perspex.Direct2D1.RenderTests.Controls |
|
|
Padding = new Thickness(20, 8), |
|
|
Padding = new Thickness(20, 8), |
|
|
Width = 200, |
|
|
Width = 200, |
|
|
Height = 200, |
|
|
Height = 200, |
|
|
Content = new Image |
|
|
Content = new Border |
|
|
{ |
|
|
{ |
|
|
Background = Brushes.Red, |
|
|
Background = Brushes.Red, |
|
|
Source = this.bitmap, |
|
|
Content = new Image |
|
|
Stretch = Stretch.Fill, |
|
|
{ |
|
|
|
|
|
Source = this.bitmap, |
|
|
|
|
|
Stretch = Stretch.Fill, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@ -71,11 +77,14 @@ namespace Perspex.Direct2D1.RenderTests.Controls |
|
|
Padding = new Thickness(20, 8), |
|
|
Padding = new Thickness(20, 8), |
|
|
Width = 200, |
|
|
Width = 200, |
|
|
Height = 200, |
|
|
Height = 200, |
|
|
Content = new Image |
|
|
Content = new Border |
|
|
{ |
|
|
{ |
|
|
Background = Brushes.Red, |
|
|
Background = Brushes.Red, |
|
|
Source = this.bitmap, |
|
|
Content = new Image |
|
|
Stretch = Stretch.Uniform, |
|
|
{ |
|
|
|
|
|
Source = this.bitmap, |
|
|
|
|
|
Stretch = Stretch.Uniform, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@ -91,11 +100,14 @@ namespace Perspex.Direct2D1.RenderTests.Controls |
|
|
Padding = new Thickness(20, 8), |
|
|
Padding = new Thickness(20, 8), |
|
|
Width = 200, |
|
|
Width = 200, |
|
|
Height = 200, |
|
|
Height = 200, |
|
|
Content = new Image |
|
|
Content = new Border |
|
|
{ |
|
|
{ |
|
|
Background = Brushes.Red, |
|
|
Background = Brushes.Red, |
|
|
Source = this.bitmap, |
|
|
Content = new Image |
|
|
Stretch = Stretch.UniformToFill, |
|
|
{ |
|
|
|
|
|
Source = this.bitmap, |
|
|
|
|
|
Stretch = Stretch.UniformToFill, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|