How to assign ImageBrush to Fill property of Ellipse in Windows 10 UWP c#?
<p>I want to assign ImageBrush to Fill property of Ellipse using c#. My XAML and C# code as following</p>

<p>XAML Code</p>

<pre><code>&lt;Ellipse Grid.Column="0"
         Margin="7"
         x:Name="userEllipse"
         Stretch="Uniform"/&gt;
</code></pre>

<p>C# Code</p>

<pre><code>ImageBrush imageBrush=new ImageBrush();
imageBrush.ImageSource=new BitmapImage(new Uri(url,UriKind.RelativeorAbsolute));
userEllipse.Fill=imageBrush;
</code></pre>

<p>This code is not working nor it's giving me any error. Can someone suggest what I am doing wrong? I can't assign URL​ in XAML as it is coming from the server.</p>