Getting an Item Inside Lisboxitem in c#
-
Hey guys i would like to get the selected item inside the listboxitem and change his look , here is the code of my listbox... i would like to change "FutureExtension" Background or something...
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<StackPanel Orientation="Horizontal" >
<my2:FutureExtension x:Name="T2" Loaded="T2_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
<my2:FutureExtension x:Name="T3" Loaded="T3_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
<my2:FutureExtension x:Name="T4" Loaded="T4_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
</StackPanel>
<!--<Border Height="20" Background="Black" BorderBrush="Orange" BorderThickness="3">
</Border>-->
</StackPanel></DataTemplate> </ListBox.ItemTemplate>
-
Hey guys i would like to get the selected item inside the listboxitem and change his look , here is the code of my listbox... i would like to change "FutureExtension" Background or something...
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<StackPanel Orientation="Horizontal" >
<my2:FutureExtension x:Name="T2" Loaded="T2_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
<my2:FutureExtension x:Name="T3" Loaded="T3_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
<my2:FutureExtension x:Name="T4" Loaded="T4_Loaded" Grid.Row="3" Margin="1,1,10,10"></my2:FutureExtension>
</StackPanel>
<!--<Border Height="20" Background="Black" BorderBrush="Orange" BorderThickness="3">
</Border>-->
</StackPanel></DataTemplate> </ListBox.ItemTemplate>