Hi,
Displaying Image alternative in listbox based on AlternationCount.
this is my code ..but it is not displaying any image ...
is their any mistake... Help me
MouseDoubleClick="lstTiles_MouseDoubleClick"
x:Name="lstTiles"
Drop="lstTiles_Drop_1" AllowDrop="True"
ItemContainerStyle="{DynamicResource SimpleListBoxItem}"
Margin="0" >
Margin="90,20,0,0" Foreground="Black" />
Aadi kumar
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
aadi kumaryPosted May 31, 2014, 6:36 AM
Hi,
is their any way to display AlternationIndex ?
Below is my code this displaying 0 only ...
<ListBox x:Name="listBox" AlternationCount="3">
<ListBox.ItemTemplate >
<DataTemplate >
<Canvas Margin="0,20,0,0">
<StackPanel Orientation="Vertical">
<TextBlock VerticalAlignment="Top" Text="{Binding Name }" FontSize="16" FontWeight="Bold" Margin="30,20,0,0" Foreground="Black" />
Path=(ItemsControl.AlternationIndex)}" />
StackPanel>
Canvas>
DataTemplate>
ListBox.ItemTemplate>
ListBox>
Khan Abrar AhmedPosted May 27, 2014, 3:07 AM