Replies: 4 comments 5 replies
-
@morning4coffe-dev is doing initial investigation of this, we will then assign as needed |
Beta Was this translation helpful? Give feedback.
-
@MartinZikmund
After removing these lines, the app behaves in the same way as before, so please investigate the topic. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @morning4coffe-dev .Style(x => x.Binding(() => vm.IsOn).Convert(isOn =>
isOn
? new Style<MyControl>().BasedOn(Style).Setters(s => s.IsOn(true))
: new Style<MyControl>().BasedOn(Style).Setters(s => s.IsOn(false))
)) |
Beta Was this translation helpful? Give feedback.
-
Create a simple custom Control with a Dependency Property of type
bool
and bind this property to ControlsTextBlock
which shows "on" when IsOn istrue
and "off" when IsOn isfalse
:Use control in MainFrame:
Scenario 1
change the value of control's
IsOn
property directly:Run the app on
net8.0-desktop;
: it works fineScenario 2
change the value of control's
IsOn
property indirectly usingStyle
:Run the app on
net8.0-desktop;
: it does not work, the control does not show up at all.Scenario 3
Run the app as in Scenario 1 but this time on
net8.0-windows10.0.19041;
:Scenario 4
Run the app as in Scenario 2 but this time on
net8.0-windows10.0.19041;
:Note: I am using the newest dev uno branch
"Uno.Sdk": "5.4.0-dev.145"
repro: UnoDynamicStyleUpdateApp.zip
Beta Was this translation helpful? Give feedback.
All reactions