File tree 1 file changed +8
-2
lines changed
src/Avalonia.Xaml.Interactions/Core
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- using System . Diagnostics . CodeAnalysis ;
1
+ using System ;
2
+ using System . Diagnostics . CodeAnalysis ;
2
3
using Avalonia . Reactive ;
3
4
using Avalonia . Xaml . Interactivity ;
4
5
@@ -74,6 +75,11 @@ private static void OnValueChanged(AvaloniaPropertyChangedEventArgs args)
74
75
return ;
75
76
}
76
77
78
+ Execute ( behavior , args ) ;
79
+ }
80
+
81
+ private static void Execute ( DataTriggerBehavior behavior , object ? parameter )
82
+ {
77
83
if ( ! behavior . IsEnabled )
78
84
{
79
85
return ;
@@ -86,7 +92,7 @@ private static void OnValueChanged(AvaloniaPropertyChangedEventArgs args)
86
92
// Some value has changed--either the binding value, reference value, or the comparison condition. Re-evaluate the equation.
87
93
if ( ComparisonConditionTypeHelper . Compare ( behavior . Binding , behavior . ComparisonCondition , behavior . Value ) )
88
94
{
89
- Interaction . ExecuteActions ( behavior . AssociatedObject , behavior . Actions , args ) ;
95
+ Interaction . ExecuteActions ( behavior . AssociatedObject , behavior . Actions , parameter ) ;
90
96
}
91
97
}
92
98
}
You can’t perform that action at this time.
0 commit comments