WPF Infragistics 控件 - ContentPane 标头未显示多重绑定值

发布于 2024-11-14 03:04:48 字数 564 浏览 5 评论 0原文

Infragistics WPF“ContentPane”控件有一个标题属性,我们可以在其中写入标题文本。我想将 2 个集合的计数和一些静态文本绑定到它,但我无法使其正常工作。

代码: <绑定路径=“ObCollection1.Count”/> <绑定路径=“ObCollection2.Count”/> 另外,如果我进行单一绑定,那么这可以正常工作,代码是:

请帮助朋友...!

Infragistics WPF 'ContentPane' control has a header property where we can write the heading text. I want to bind 2 collection's count and some static text to it, but iam unable to get this working.

code:
<igDock:ContentPane.Header>
<MultiBinding StringFormat="Developer {0}, {1} ">
<Binding Path="ObCollection1.Count" />
<Binding Path="ObCollection2.Count" />
</MultiBinding>
</igDock:ContentPane.Header>

Also, if i do single binding , then this works ok , code is :


<igDock:ContentPane Background="Transparent" CloseButtonVisibility="Hidden" Header="{Binding DeveloperColl.Count, Mode=OneWay}" >

Plz help friends..!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肩上的翅膀 2024-11-21 03:04:48

固定的!问题在于使用 StringFormat,我们必须使用 ConverterParameter 而不是 StringFormat 对于这个特定的 Infragistics 控件才能使其正常工作:)

Fixed! The issue was with using StringFormat, we have to use ConverterParameter instead of the StringFormat for this particular Infragistics control to get this thing to work :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文