开发者

save bindings to XAML

开发者 https://www.devze.com 2023-01-08 10:23 出处:网络
According to Microsoft, http://msdn.microsoft.com/en-us/library/ms754193.aspx#Extension_References_are_Dere开发者_运维问答ferenced

According to Microsoft,

http://msdn.microsoft.com/en-us/library/ms754193.aspx#Extension_References_are_Dere开发者_运维问答ferenced

bindings are not serialized to XAML when using XamlWriter.

Has anyone implemented a way to save these bindings to XAML?


Yes you can save bindings to XAML and other expressions using a BindingConvertor provided in these posts -

http://www.codeproject.com/KB/WPF/xamlwriterandbinding.aspx

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a1984451-4840-4e0f-abc5-8a8e34a4f8ca

I have used it myself and it works great.

0

精彩评论

暂无评论...
验证码 换一张
取 消