0
나는 그와 유사한 목록 상자 스트레칭 싶습니다 : 일부 당신이 완벽하게 작동 두 번째 항목에 대한 같은 단지 콘텐츠를 넣어,하지만 내 "진짜"목록 상자가 결합되며 경우수평 확장옵니다
<Grid Background="#FFC0BBBB">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border HorizontalAlignment="Stretch" Grid.Row="0">
<ListBox Name="listBox" >
<ListBoxItem >
<StackPanel>
<TextBlock Text="Toto"></TextBlock>
<!--<Image Source ="" Visibility="Collapsed" />-->
</StackPanel>
</ListBoxItem>
<ListBoxItem >listbox item 2</ListBoxItem>
<ListBoxItem >
<Grid>
<TextBlock Text="Tata"></TextBlock>
<Image Source ="" />
</Grid>
</ListBoxItem>
<ListBoxItem >
<Grid>
<TextBlock Background="Aqua" Text=""></TextBlock>
<Image Source ="https://support.twitter.com/images/twitter-bird.png?1339467554" />
</Grid>
</ListBoxItem>
<ListBoxItem >
<Grid>
<TextBlock Text="Vava"></TextBlock>
<Image Source ="" />
</Grid>
</ListBoxItem>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="5" Background="Pink" HorizontalAlignment="Stretch" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</Border>
</Grid>
을 items 다른 사람들을 위해 Image를 넣어야하는 TextBlock (Image + Textblock이 필요 없습니다). 저는 변환기를 사용해야 할 것이라고 생각하지만 "어디서"넣고 무엇을 돌려야할지 모릅니다.
아이디어가 있으십니까? 감사