询问者
can add this Syntactic sugar in xaml?

问题
全部回复
-
你好,
WPF不支持这种语法, 你可以使用值转换器来处理。
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 Bob DingModerator 2017年8月24日 5:43
-
因为绑定是个双向的关系,数据从数据源到控件,再从控件到数据源,表达式会导致这种双向绑定关系中断
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
- 已建议为答案 Bob DingModerator 2017年8月24日 5:43
-
转换器的话太麻烦了,一没有参数,二类型太死,比如我加减乘除就要定义四个转换器
你好,
如果转换器不能解决问题,那就在后台代码中把业务逻辑处理好在进行数据绑定,
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 Bob DingModerator 2017年8月24日 5:43