标签: contenttemplate

WPF 错误:“无法将内容添加到 BarStaticItem 类型的对象”

我有这个 XAML:

<dxb:BarStaticItem>
  <TextBlock Text="{Binding MyStatusBarText}"></TextBlock>
</dxb:BarStaticItem> 
Run Code Online (Sandbox Code Playgroud)

但是,我收到此错误:

Cannot add content to an object of type BarStaticItem

我该如何解决这个问题,以便我可以执行诸如更改渲染项目的颜色和样式之类的操作?

wpf xaml datatemplate wpf-controls contenttemplate

0
推荐指数
1
解决办法
6407
查看次数

标签 统计

contenttemplate ×1

datatemplate ×1

wpf ×1

wpf-controls ×1

xaml ×1