To view datePicker on top

Nov 17, 2008 at 5:40 AM
Hi,
  I am trying to see my date picker control on top but this fails, I tried the following:

<

Controls1:DatePicker DockPanel.Dock="Top" Grid.Row="7" Grid.Column="1" SelectedDate="{Binding Path=StartDate, Mode=TwoWay, Converter={StaticResource dateTimeConverter}}" HorizontalAlignment="Right" TabIndex="8" IsEnabled="True">

 

 

<Controls1:DatePicker.Margin>

 

 

<Thickness Bottom="{StaticResource relatedControlsMargin}" Left="{StaticResource labelControlMargin}"/>

 

 

</Controls1:DatePicker.Margin>

 

 

</Controls1:DatePicker>

but nothing happens , I see it below the main page. Any suggestions please.