title: How to open Calendar control on image click dynamically in WPF
body: <p>I want to populate calender control on image click and bind that value to the text block in wpf .</p>
  
  <p></p>
  
  <pre><code> &lt;Image Name="imgCalendar" Width="20" Height="30" Source="/Images/Cal.jpg" KeyDown="imgCalendar_KeyDown" /&gt;
  
  &lt;TextBlock Text="{Binding SelectedDate, ElementName=CalendarControl}"
             VerticalAlignment="Bottom"
             HorizontalAlignment="Left" /&gt;
  
  &lt;Calendar x:Name="CalendarControl"
            HorizontalAlignment="Center"
            VerticalAlignment="Center" 
          Visibility="Hidden" &gt;
  &lt;/Calendar&gt;
  </code></pre>
  
  <p></p>