Is it likely that I can place a popup next to an item from a ListBox? I am using MVVM, the list is tied to items, and for some selected items I want to show a popup next to the item.
I have a list of items and I want to show a popup when I click on a specified list item, but a popup should appear next to the selected list item.
I tried something like this (it doesn't work):
<Popup IsOpen="{Binding Path=ShowPopup}" PlacementTarget="{Binding ElementName=List1, Path=SelectedItem}" Placement="Center">
<TextBox Background="Red" Height="120" Text="Aaaaaa FUUUUUUUUUUUUU....."></TextBox>
</Popup>
I do not want to use the code behind, only xaml
source
share