Ref: #23578 - Behavior bindable property with DynamicResource not supported
- Run application
- Observe application output for
MyColorPropertyChanged
messages
There should be 2 MyColorPropertyChanged
trace messages output on startup indicating that the ReproBehavior
MyColor
property value has been set to red [Color: Red=1, Green=0, Blue=0, Alpha=1]
.
Only 1 MyColorPropertyChanged
trace message is output on startup. In this case, for the property being set with StaticResource
. A property value is not set for the behavior using DynamicResource
.
- Run application
- Ignore application outputs for
MyColorPropertyChanged
messages from start-up - Click the
Switch Theme
Button - Observe application output for
MyColorPropertyChanged
messages
There should be a MyColorPropertyChanged
trace message output after clicking the Switch Theme
Button. In this case, indicating that the ReproBehavior
MyColor
property, set with DynamicResource
, has been updated following changes to resources.
No MyColorPropertyChanged
trace message gets output after clicking the Switch Theme
Button.
Note
The expected value is being set on startup, and updated based on subsequent changes to resources, when the same DynamicResource
is used on the parent Image
BackgroundColor
property.