display images based on combo box item selection in WPF
<p>I have 3 comboboxes like below on difference location with 3 images under every combo box.</p>

<pre><code>&lt;ComboBox Name="Category1" Grid.Row="0" Grid.Column="0"
        HorizontalAlignment="Left"
        Margin="40,20,0,0"
        VerticalAlignment="Top"
        Width="120"
        Loaded="Category1_Loaded"
        SelectionChanged="Category1_SelectionChanged"/&gt;
        &lt;Image Width="120" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Margin="40,40,0,0" Name="CB1" Source="C:\Users\Image1.png" /&gt;

        &lt;ComboBox Name="Category2" Grid.Row="0" Grid.Column="1"
        HorizontalAlignment="Left"
        Margin="40,20,0,0"
        VerticalAlignment="Top"
        Width="120"
        Loaded="Category2_Loaded"
        SelectionChanged="Category2_SelectionChanged"/&gt;
        &lt;Image Width="120" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" Margin="40,40,0,0" Name="CB2" Source="C:\Users\Image2.png" /&gt;

        &lt;ComboBox Name="Category3" Grid.Row="0" Grid.Column="2"
        HorizontalAlignment="Left"
        Margin="40,20,0,0"
        VerticalAlignment="Top"
        Width="120"
        Loaded="Category3_Loaded"
        SelectionChanged="Category3_SelectionChanged"/&gt;
        &lt;Image Width="120" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Left" Margin="40,40,0,0" Name="CB3" Source="C:\Users\Image3.png" /&gt;
</code></pre>

<p>and .cs code </p>

<pre><code> private void Category1_Loaded(object sender, RoutedEventArgs e)
        {
            // ... A List.
            List&lt;string&gt; data = new List&lt;string&gt;();
            data.Add("Category1_1");
            data.Add("Category1_2");
            // ... Get the ComboBox reference.
            var comboBox = sender as ComboBox;
            // ... Assign the ItemsSource to the List.
            comboBox.ItemsSource = data;
            // ... Make the first item selected.
            comboBox.SelectedIndex = 0;
        }

private void Category2_Loaded(object sender, RoutedEventArgs e)
        {
            // ... A List.
            List&lt;string&gt; data = new List&lt;string&gt;();
            data.Add("Category2_1");
            data.Add("Category2_2");
            // ... Get the ComboBox reference.
            var comboBox = sender as ComboBox;
            // ... Assign the ItemsSource to the List.
            comboBox.ItemsSource = data;
            // ... Make the first item selected.
            comboBox.SelectedIndex = 0;
        }
private void Category3_Loaded(object sender, RoutedEventArgs e)
        {
            // ... A List.
            List&lt;string&gt; data = new List&lt;string&gt;();
            data.Add("Category3_1");
            data.Add("Category3_2");
            // ... Get the ComboBox reference.
            var comboBox = sender as ComboBox;
            // ... Assign the ItemsSource to the List.
            comboBox.ItemsSource = data;
            // ... Make the first item selected.
            comboBox.SelectedIndex = 0;
        }
</code></pre>

<p>Now 3 combo boxes and images like below
<a href="https://i.stack.imgur.com/a92tU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a92tU.png" alt="enter image description here"></a></p>

<blockquote>
  <p>I want to change or display a particular image based on dropdown
  selection. for example If I select dropdown value <code>Category1_1</code> it
  should show me image <code>c:\users\Category1_1.PNG</code></p>
</blockquote>