Browse Source

add contentattribute to image.

pull/5909/head
Dan Walmsley 5 years ago
parent
commit
d1192901a1
  1. 2
      src/Avalonia.Controls/Image.cs

2
src/Avalonia.Controls/Image.cs

@ -1,5 +1,6 @@
using Avalonia.Media; using Avalonia.Media;
using Avalonia.Media.Imaging; using Avalonia.Media.Imaging;
using Avalonia.Metadata;
namespace Avalonia.Controls namespace Avalonia.Controls
{ {
@ -37,6 +38,7 @@ namespace Avalonia.Controls
/// <summary> /// <summary>
/// Gets or sets the image that will be displayed. /// Gets or sets the image that will be displayed.
/// </summary> /// </summary>
[Content]
public IImage Source public IImage Source
{ {
get { return GetValue(SourceProperty); } get { return GetValue(SourceProperty); }

Loading…
Cancel
Save