Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Core] Brushes working with DynamicResource #12761

Merged
merged 5 commits into from
Nov 11, 2020
Merged

[Core] Brushes working with DynamicResource #12761

merged 5 commits into from
Nov 11, 2020

Conversation

jsuarezruiz
Copy link
Contributor

@jsuarezruiz jsuarezruiz commented Nov 6, 2020

Description of Change

Changed Brush and GradientStop from BindableProperty to Element and propagate correctly the Parent.

Issues Resolved

API Changes

None

Platforms Affected

  • Core/XAML (all platforms)

Behavioral/Visual Changes

None

Before/After Screenshots

issue11696

issue11911

Testing Procedure

Launch Core Gallery and navigate to the issues 11696 and 11911. Verify that the expected colors are rendered (read issue instructions).

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jsuarezruiz jsuarezruiz added t/bug 🐛 a/Xaml </> blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. a/shapes a/brushes labels Nov 6, 2020
Copy link
Member

@StephaneDelcroix StephaneDelcroix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure Brushes are unparented, and you're good.

@@ -87,5 +89,12 @@ public Stretch Aspect
set { SetValue(AspectProperty, value); }
get { return (Stretch)GetValue(AspectProperty); }
}

static void OnBrushChanged(BindableObject bindable, object oldValue, object newValue)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need some code (and unit test) to unparent Brushes

@rmarinho rmarinho merged commit 362ad02 into 5.0.0 Nov 11, 2020
@rmarinho rmarinho deleted the fix-11911 branch November 11, 2020 12:21
@samhouts samhouts added a/style 4.8.0 regression on 4.8.0 labels Nov 11, 2020
@samhouts samhouts modified the milestone: 5.0.0 Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.8.0 regression on 4.8.0 a/brushes a/shapes a/style a/Xaml </> blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. t/bug 🐛
Projects
None yet
4 participants