Witam, mam problem, gdyż naciśnięcie listboxitem-u nie uruchamia zdarzenia selectionchanged
<ListBox x:Name="listbox" HorizontalAlignment="Center" VerticalAlignment="Center" SelectionChanged="changed" >
<ListBox.ItemTemplate>
<DataTemplate>
<Button x:Name="but" Opacity="0.6">
<Button.Content>
<StackPanel Orientation="Vertical">
<TextBlock Background="Orange" Foreground="White" Width="330" FontSize="15" Text="{Binding title}" Height="25" TextAlignment="Center"/>
<Image Margin="0.7" Source="{Binding Path=adres}" Width="330" />
</StackPanel>
</Button.Content>
</Button>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>