-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Path.Fill and Path.Stroke not working when set with DynamicResource #11907
Comments
is this fixed ? tried on Xamarin.Forms 5.0.0.1709-pre4 not working with Binding |
I've got the same problem, Xamarin.Forms 5.0.0.1709-pre4 |
One of the big changes I noticed was that Stroke and Fill changed from Color to SolidColorBrush. Are you trying to bind to a Color or a SolidColorBrush? |
Yes, I'm trying to bind it to a Color. |
tried using SolidColorBrush as below, no luck. StatusColor returns hex |
not working on Forms 5.0.0.1931 !!! |
Still, the issue is not fixed, I have checked with 5.0.0.2012. Please fix this issue or provide some workaround!!! |
I also have 5.0.0.2012 installed. Binding Stroke and Fill to properties is not working e.g. Fill={Binding ShapeFillColor} |
why was that closed? it is not working. |
Encountered this issue today with binding a color to a Line Stroke:
Line does not appear to be visible. However, setting the string directly will work:
|
I have the same problem. I dont know why its Closed. ???¿?¿? becouse its not working. <Style x:Key="StatusIconBase" TargetType="Path"> I try in the same ResourceDictionary or in other xaml but is not working. #FF787878 and with ColorBrush |
Why people closing this if it's still not fixed. |
Opened as a new bug here. |
issue still not fixed |
Description
I have quite a few paths in my application. When I upgraded from Xamarin.Forms 4.7.0.1260 to 4.8.0.1269 all of my paths disappeared and were no longer painting. I tracked it down to the use of Fill="{DynamicResource xxxx}" and Stroke="{DynamicResource xxxx}". I am using a resource dictionary for colors that gets swapped out when the theme changes. If I set the path or the stroke with a dynamic resource that is either a Color or a SolidColorBrush there are no errors however it does not set the color at all and the path never renders visible. If I set the Fill or Stroke with a static color like Fill="DarkBlue" it works fine. I am rolling back as this is not going to work for me.
Steps to Reproduce
Expected Behavior
I would expect that using a SolidColorBrush from a resource dictionary with DynamicResource would correctly apply the color like it does everywhere else.
Actual Behavior
Color is never applied and path remains invisible.
Basic Information
The text was updated successfully, but these errors were encountered: