2015-03-04から1日間の記事一覧
少し嵌ったのでメモ DataContextは設定されてる前提 <ListBox ItemsSource="{Binding Items}"> <ListBox.ItemTemplate> <DataTemplate> <Button Content="{Binding Tell}"/> </DataTemplate> </ListBox.ItemTemplate> <ListBox.ItemsPanel> <ItemsPanelTemplate> </itemspaneltemplate></listbox.itemspanel></listbox>
参考 WPF メモ (23) - しばやん雑記 WPF メモ (23) - しばやん雑記基本的には <TabControl ItemsSource="{Binding Items}"/>とやるのだが、これだけではまだ足りない。 <TabControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Path=**}"/> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate> </tabcontrol.contenttemplate></tabcontrol>