title: How do you pass parameters from xaml?
body: <p>I have created my own UserControl "ClockControl", which I initialize through the main window's XAML.</p>
  
  <p>The only problem is that I have to pass a parameter to the constructor of the clock control, and I have no clue of I how I can do that.</p>
  
  <p>This works if I have no parameters:</p>
  
  <pre><code>&lt;myControl:ClockControl&gt;&lt;/myControl:ClockControl&gt;
  </code></pre>
  
  <p>But how can I pass a parameter doing this?</p>
  
  <p>Here is the constructor:</p>
  
  <pre><code>public ClockControl(String city)
      {
          InitializeComponent();
          this.initController();
          ......
          .....
      }
  </code></pre>
  
  <p>Thanks in advance.</p>