码迷,mamicode.com
首页 > 其他好文 > 详细

关于绑定的C#代码+转换器

时间:2014-09-14 03:39:16      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:io   ar   sp   代码   on   c   new   r   res   

  BindingOperations.SetBinding(
                exp, Expander.IsExpandedProperty,
                new Binding()
                {
                    Path = new PropertyPath("SelectedExpander"),
                    Mode = BindingMode.TwoWay,
                    Converter = this.TryFindResource("ExpanderToBoolConverter") as IValueConverter,
                    ConverterParameter = convertParameter
                }
            );

关于绑定的C#代码+转换器

标签:io   ar   sp   代码   on   c   new   r   res   

原文地址:http://www.cnblogs.com/changbaishan/p/3970615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!