title: WPF time dropdown box with objectdataprovider
body: <p>I'm trying to implement a user control for choosing time with 3 comboboxes - one for hours, second for minutes and third for seconds.</p>
  
  <p>Hours' combobox has numbers from 0 to 23 to choose from</p>
  
  <p>Minutes' and seconds' combobox has numbers 0 to 59 to choose from</p>
  
  <p>I believe I can do it just with XAML without needing to fill the comboboxes dynamically in the codebehind.</p>
  
  <pre><code>&lt;ComboBox x:Name="HoursComboBox"&gt;
      &lt;ComboBoxItem&gt;0&lt;/ComboBoxItem&gt;
      &lt;ComboBoxItem&gt;1&lt;/ComboBoxItem&gt;
      ...
      &lt;ComboBoxItem&gt;23&lt;/ComboBoxItem&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>But this looks like a lot of static and unneccessary code. I can fill the combobox with just one line in the codebehind like this.</p>
  
  <pre><code>HoursComboBox.ItemsSource = System.Linq.Enumerable.Range(0, 23);
  </code></pre>
  
  <p>Can I implement this call just in XAML?</p>