Change DataTemplate for ListBox item if selected in UWP
<p>In UWP Xaml,I have a ListView. In the ListView i use a DataTemplate with a stack panel,
I want change backgrund color of stackpanel when selectedItem is True
I do want to do it in Xaml</p>

<p>the other words,</p>

<p>Change DataTemplate for Listview item if selected
I do want to do it in Xaml</p>

<p>code in Xaml:</p>

<pre><code>&lt;ListView.ItemTemplate &gt;
    &lt;DataTemplate x:Name="mydt"&gt;

        &lt;Grid&gt;
            &lt;Grid.ColumnDefinitions&gt;
                &lt;ColumnDefinition Width="*" /&gt;
                &lt;ColumnDefinition Width="40" /&gt;
            &lt;/Grid.ColumnDefinitions&gt;
            &lt;StackPanel x:Name="MyStack"&gt;
                &lt;ContentControl Content="{Binding rtb}"
                                q:APGolAyah.MyProperty="{Binding AyahNo}" /&gt;                           
                &lt;TextBlock Text="{Binding Text}"
                           TextWrapping="Wrap" /&gt;

            &lt;/StackPanel&gt;
            &lt;Image Grid.Column="1"
                   Source="{Binding HezbNo,Converter={StaticResource HezbNoToIconConverter}}"
                   Width="25" /&gt;
        &lt;/Grid&gt;
    &lt;/DataTemplate&gt;
&lt;/ListView.ItemTemplate&gt;
</code></pre>