2010-11-25 15 views
3

私はWPF ListBox ItemTemplate:コンテンツを空き領域に埋め込む方法を教えてください。

<ListBox.ItemTemplate> 
    <DataTemplate> 
     <StackPanel Margin="10"> 
      <TextBlock Text="{Binding Args}" /> 
      <ProgressBar Value="{Binding Progress}" Height="10" /> 
      <TextBlock Text="{Binding Status}" /> 
      <TextBlock Text="{Binding Result}" /> 
     </StackPanel> 
    </DataTemplate> 
</ListBox.ItemTemplate> 

以下のような結果が

どのように私はStackPanelListBoxの幅全体を埋めることができますか?何かに私のListBox.ItemTemplateを設定していますか

答えて

関連する問題