[C] Parent the ImageSource (#8063)
authorStephane Delcroix <stephane@delcroix.org>
Tue, 29 Oct 2019 17:06:35 +0000 (18:06 +0100)
committerSamantha Houts <samhouts@users.noreply.github.com>
Tue, 29 Oct 2019 17:06:34 +0000 (10:06 -0700)
commit37476d86f517d10a0bed5657e77391c73fba5daa
treed40d5b1586725a6d568a2068ab84a98bb690b2d0
parente2101e4ea4471ff682525f52d2e393830a03db10
[C] Parent the ImageSource (#8063)

* [C] Parent the ImageSource

Properly parent the imagesource, instead of only setting the inherited context.
Allows proper propagation of DynamicResources and Styles

- fixes #6996

* fix merge

:bell: shame!
14 files changed:
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
Xamarin.Forms.Core/BindableObject.cs
Xamarin.Forms.Core/Button.cs
Xamarin.Forms.Core/Element.cs
Xamarin.Forms.Core/FontImageSource.cs
Xamarin.Forms.Core/IImageElement.cs
Xamarin.Forms.Core/Image.cs
Xamarin.Forms.Core/ImageButton.cs
Xamarin.Forms.Core/ImageElement.cs
Xamarin.Forms.Core/Internals/DynamicResource.cs
Xamarin.Forms.Core/ResourcesExtensions.cs
Xamarin.Forms.Xaml.UnitTests/Issues/Gh6996.xaml [new file with mode: 0644]
Xamarin.Forms.Xaml.UnitTests/Issues/Gh6996.xaml.cs [new file with mode: 0644]
Xamarin.Forms.Xaml/MarkupExtensions/DynamicResourceExtension.cs