BindingOperations.SetBinding(
exp, Expander.IsExpandedProperty,
new Binding()
{
Path = new PropertyPath("SelectedExpander"),
Mode = BindingMode.TwoWay,
Converter = this.TryFindResource("ExpanderToBoolConverter") as IValueConverter,
ConverterParameter = convertParameter
}
);
关于绑定的C#代码+转换器
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Visual Studio项目版本转换器(c#项目版本转换器 v1.0)
Visual Studio项目版本转换器(c#项目版本转换器 v1.0)使用截图
c# Tools 解决方案 javascript