You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] TouchBehavior overrides BackgroundColor binding and prevents UI updates #3091
When using TouchBehavior on a Border, the behavior overrides the BackgroundColor even when the property is bound to a dynamic value. This causes the UI to stop updating the color in real time.
The issue appears when using HoveredBackgroundColor, but also happens indirectly when using other hover properties (scale, rotation, etc.), because the behavior internally manipulates the visual state and blocks the bound color from refreshing.
This results in:
The bound color not updating while the pointer is over the control
The UI showing an incorrect color
The correct color only appearing after restarting the app
The binding not receiving updates until the hover state ends
This makes Touch Behavior incompatible with dynamic color scenarios.
Expected Behavior
The BackgroundColor binding should continue to update normally, even when TouchBehavior is active.
Steps To Reproduce
Create a ContentView with a Border whose BackgroundColor is bound to a ViewModel property.
Add a TouchBehavior to the same Border.
Change the bound color at runtime (e.g., via a ColorPicker).
Observe that the UI does not update the color until the pointer leaves the control or the app restarts.
Additionally, AppThemeObject<T>.GetBinding throws an exception when called by CommunityToolkit 14.0.0 with Microsoft.Maui.Controls 10.0.40. Works with Microsoft.Maui.Controls 10.0.31.
Method Microsoft.Maui.Controls.AppThemeBinding..ctor()' is inaccessible from method CommunityToolkit.Maui.AppThemeObject`1[Microsoft.Maui.Graphics.Color].GetBinding()'
at CommunityToolkit.Maui.AppThemeObject`1[[Microsoft.Maui.Graphics.Color, Microsoft.Maui.Graphics, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]].GetBinding()
Additionally, AppThemeObject<T>.GetBinding throws an exception when called by CommunityToolkit 14.0.0 with Microsoft.Maui.Controls 10.0.40. Works with Microsoft.Maui.Controls 10.0.31.
Method Microsoft.Maui.Controls.AppThemeBinding..ctor()' is inaccessible from method CommunityToolkit.Maui.AppThemeObject`1[Microsoft.Maui.Graphics.Color].GetBinding()'
at CommunityToolkit.Maui.AppThemeObject`1[[Microsoft.Maui.Graphics.Color, Microsoft.Maui.Graphics, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]].GetBinding()
Activity
breyed commentedon Feb 13, 2026
Additionally,
AppThemeObject<T>.GetBindingthrows an exception when called by CommunityToolkit 14.0.0 with Microsoft.Maui.Controls 10.0.40. Works with Microsoft.Maui.Controls 10.0.31.Repro:
bijington commentedon Feb 13, 2026
Please raise a separate bug for that
breyed commentedon Feb 13, 2026
Done. (I had placed my comment above on the wrong issue. It was supposed to go on #3089.)
Add device tests for platform-specific code, run them in CI, and fix …