title: WPF DatePicker format
body: <p>I got this sample code from this forum.</p>
  
  <pre><code>&lt;DatePicker SelectedDate="{Binding myVideModelProperty}"
                  Height="25" HorizontalAlignment="Left" Margin="81,-2,0,0" Name="myDatePicker" VerticalAlignment="Top" Width="115"&gt;
          &lt;DatePicker.Resources&gt;
              &lt;Style TargetType="{x:Type DatePickerTextBox}"&gt;
                  &lt;Setter Property="Control.Template"&gt;
                      &lt;Setter.Value&gt;
                          &lt;ControlTemplate&gt;
                              &lt;TextBox x:Name="PART_TextBox" 
                                  Text="{Binding Path=SelectedDate, RelativeSource={RelativeSource AncestorType={x:Type DatePicker}}, StringFormat={}{0:yyyy/MM/dd}}" /&gt;
                          &lt;/ControlTemplate&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/DatePicker.Resources&gt;
      &lt;/DatePicker&gt;
  </code></pre>
  
  <p>But I want the format i.e yyyy/MM/dd to come from an application property called dateformat. 
  Can you help me put the stringformat as a binding to the application property.</p>