{x:Bind} 函数到 bool? 属性在为空时不更新

作者: Sergio0694创建于 2020年1月28日更新于 2026年10月1日
标签bugworking on itarea-Bindingteam-Markupteam-Core

Describe the bug

Having an {x:Bind} to a function targeting a bool? property causes the framework not to refresh the binding (ie. to evaluate the function again) when that target property is set to null. Switching back to a converter works as expected instead, but has another whole series of drawbacks, so it's not really a viable solution for this (higher overhead, verbosity, etc.).

内容来源: microsoft/microsoft-ui-xaml