Browse Source

Merge pull request #1922 from AvaloniaUI/fixes/1921-image-source-affects-measure

[Image] Measure is triggered when source or stretch property is changed.
pull/1928/head
Jumar Macato 7 years ago
committed by GitHub
parent
commit
a0331b9889
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Avalonia.Controls/Image.cs

1
src/Avalonia.Controls/Image.cs

@ -26,6 +26,7 @@ namespace Avalonia.Controls
static Image()
{
AffectsRender<Image>(SourceProperty, StretchProperty);
AffectsMeasure<Image>(SourceProperty, StretchProperty);
}
/// <summary>

Loading…
Cancel
Save