title: Avatar contact Image how to dynamically display user profile image and the last name with random color UWP?
body: <p>I'm writing Avatar for the contact list. The design is like this, if I can get the contact's image then I display the image. If not I need to show capital letter of the last name with random color. I know how to display round image</p>
  
  <pre><code>&lt;Button&gt;
      &lt;Button.Content&gt;
          &lt;Ellipse&gt;
               &lt;Ellipse.Fill&gt;
                   &lt;ImageBrush ImageSource="{Binding Image}"/&gt;
               &lt;/Ellipse.Fill&gt;
           &lt;/Ellipse&gt;
       &lt;/Button.Content&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>I'm wondering what is the direction to display those without image and I have to display letter of last name and fill the ellipse with random color. My idea is that in the Image's getter write some conditional code to decide what to display. But how to make the image with  given letter and random color.</p>