开发者

save bindings to XAML

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜