选项卡控件中的项目控件?
我有以下代码要在我的 xaml 文件中实现。
<ItemsControl ItemsSource="{Binding Source={StaticResource xDoc}, XPath=targets/target/antcall/@target}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Path=Value, Converter={StaticResource UnderscoresConverter}}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
我的 window1 下已经有一个选项卡控件。我应该在哪里以及如何实施此项目控制?抱歉,我是 wpf 的初学者。
编辑: 我的选项卡控件下也有一个网格控件
i have the following code to be implemented into my xaml file.
<ItemsControl ItemsSource="{Binding Source={StaticResource xDoc}, XPath=targets/target/antcall/@target}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Path=Value, Converter={StaticResource UnderscoresConverter}}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
i already have a tab control under my window1. where and how should i implement this itemscontrol? sorry i am a beginner in wpf.
EDIT:
I have a grid control under my tab control too
我不太明白你想要做什么。如果你尝试将 itemscontrol 添加到 tabcontrol,请参阅下面的代码
I didn't quite get what you are trying to do.If you are trying to add your itemscontrol to the tabcontrol,see the below code