I have encountered something very strange, simple WPF application

&lt;Window x:Class="ListBoxSelection.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"&gt;
    &lt;Grid&gt;
        &lt;ListBox ItemsSource="{Binding Path=Strings}" SelectionMode="Single"/&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;


with code behind

public class ViewModel
{
    public List&lt;string&gt; Strings { get; set; }

    public ViewModel ()
    {
        Strings = new List&lt;string&gt; ();
        Strings.Add ("A");
        // add many items ...
        Strings.Add ("A");
    }
}

/// &lt;summary&gt;
/// Interaction logic for MainWindow.xaml
/// &lt;/summary&gt;
public partial class MainWindow : Window
{
    public MainWindow ()
    {
        InitializeComponent ();

        DataContext = new ViewModel ();
    }
}


and when I click on a single item,



if I continue clicking items, they just aggregate. Clicking an already selected item does nothing. Scratching my head, I have databound lists to ListBoxes before, and have never seen this before. Running Win7 (64), VS2010, behaviour presents with .Net 3.5, .Net 3.5 Client Profile, .Net 4, and .Net 4 Client Profile.

Arg, I should mention I am expecting normal, default, single-select behaviour.


Question: How can I use an SVG image as a map marker in OpenLayers-3?
Answer: I also had issues to show the icon image, ahocevar answer helped me to 
solve my problem but I had also to search for the php header, for SVG
In case you are or others who see this answer are using php to generate the SVG you have to use header function to identify the content-type

header('Content-type: image/svg+xml'); /* this line will do the magic */
echo '&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
&lt;svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/&gt;
&lt;/svg&gt;';