Skip to content

Commit

Permalink
Merge pull request #5909 from AvaloniaUI/feature/image-content-attribute
Browse files Browse the repository at this point in the history
add contentattribute to image.
  • Loading branch information
Dan Walmsley committed May 12, 2021
2 parents eab1884 + d119290 commit e371304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/Image.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Avalonia.Metadata;

namespace Avalonia.Controls
{
Expand Down Expand Up @@ -37,6 +38,7 @@ static Image()
/// <summary>
/// Gets or sets the image that will be displayed.
/// </summary>
[Content]
public IImage Source
{
get { return GetValue(SourceProperty); }
Expand Down

0 comments on commit e371304

Please sign in to comment.