Open deepea opened 9 years ago
I am having this same issue.
`
<WindowsStateTriggers:CompareStateTrigger Value="{Binding ConnectionStatus, Mode=OneWay}" CompareTo="Connected" Comparison="Equal"/>
</WindowsStateTriggers:CompositeStateTrigger>`
Can you try {x:Bind} instead of {Binding} in the StateTrigger?
I have the same issue but with x:Bind it works. I have no idea why is classic Binding broken.
I observed the same thing, x:Bind
works but not Binding
.
When trying to use CompositeStateTrigger with a ViewModel the PropertyChangedCallback of the Dependency Property of the inner StateTrigger is only fired once upon page load and never again. The examples in the TestApp project, which do not use MVVM and bind directly to the page elements, work as intended.
To Reproduce:
To reproduce the issue I have put together a simple example project. Please note that the EqualsStateTrigger should already use the fix mentioned in issue #37.
View - MainPage.xaml
ViewModel - MainViewModel.cs