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
Binding in Style Setters has been a wished-for feature in WinUI 3, at least for me. By chance (err, mistake) I noticed recently that x:Bind appears to work just fine in something like: <Setter Property="FontSize" Value="{x:Bind app:App.ShellPage.RootShellFontSize, Mode=OneWay}" />.
The equivalent Binding expression <Setter Property="FontSize" Value="{Binding RootShellFontSize, ElementName=shellPage}" />
does not., as Binding is not supported in Setters according to the documentation. Is x:Bind supported in this case or have I made a mistake?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Binding in
Style Setters
has been a wished-for feature in WinUI 3, at least for me. By chance (err, mistake) I noticed recently thatx:Bind
appears to work just fine in something like:<Setter Property="FontSize" Value="{x:Bind app:App.ShellPage.RootShellFontSize, Mode=OneWay}" />
.The equivalent
Binding
expression<Setter Property="FontSize" Value="{Binding RootShellFontSize, ElementName=shellPage}" />
does not., as
Binding
is not supported inSetters
according to the documentation. Isx:Bind
supported in this case or have I made a mistake?Beta Was this translation helpful? Give feedback.
All reactions