-
Notifications
You must be signed in to change notification settings - Fork 1.9k
A Property resets to default when multiple Triggers setting it to the same value #1412
Comments
I'm running into the same issue. Any workaround? |
This appears to be the same issue posted on the forums: https://forums.xamarin.com/discussion/141997/datatrigger-only-occurs-once-per-value#latest |
Still having a problem which might be related to this issue. I'm having two DataTriggers for a BackgroundColor Property for a boolean (true/false). When calling PropertyChanged and the value has changed, BackgroundColor is set to default, even tho my triggers are assigned like this: true = red Using Xamarin.Forms 3.4.0.1029999 |
I'm having the same issue in Xamarin Forms 4.2.0.778463. It seems if there are multiple DataTriggers looking at the same property, the last one wins. |
Any updates on this bug? I am currently facing a most probably related issue. I got an entry with 2 Triggers on the "IsFocused" property that changes the Text according to the True or False value. The problem is that after entering some text and then deselecting/selecting the entry, the string format is applied as expected, but then the entry text resets to the older value!
Using Xamarin.Forms 4.3.0.991221 |
@mojazu try to move one trigger as default value.
Similar issue: |
This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you! |
tested it with a button and seems to be working now (Forms 4.7.0.1142):
|
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
This issue is still present in v4.8.1687 and 5.0.0.2012. My ugly work around is to use values in setters that are basically the same, but resolve to same value. For instance, these are the values that I'm pulling into separate conditions for my trigger. |
Description
When two Triggers setting a property to the same (non-default) value on different conditions, after the handoff between the last and the first, the actual value resets to default.
Steps to Reproduce
Expected Behavior
Label will stay red after any number of clicks on the button
Actual Behavior
Label will become its default color after two clicks on the button
Basic Information
Reproduction Link
https://github.com/mmcubit/SameValueTriggerBugRepro
First reported on bugzilla: https://bugzilla.xamarin.com/show_bug.cgi?id=60209
The text was updated successfully, but these errors were encountered: