This is a migrated thread and some comments may be shown as answers.

[Solved] Why there is a gap?

2 Answers 65 Views
DatePicker for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pavel
Top achievements
Rank 1
Pavel asked on 23 Sep 2014, 07:01 PM
Trying to align control and fond that there is a gap like top margin and I can't remove it. Screenshot attached.
Left control is DateTimePicker - right control is textbox.

2 Answers, 1 is accepted

Sort by
0
Pavel
Top achievements
Rank 1
answered on 23 Sep 2014, 07:04 PM
Same thing with RadNumericBox.
0
Pavel
Top achievements
Rank 1
answered on 23 Sep 2014, 07:17 PM
Found it. It's HeaderStyle and it doesn't looks good. Because picker have no header, but there is margin.

<Setter Property="HeaderStyle">
           <Setter.Value>
               <Style TargetType="ContentControl">
                   <Setter Property="HorizontalAlignment" Value="Stretch"/>
                   <Setter Property="VerticalAlignment" Value="Stretch"/>
                   <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                   <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                   <Setter Property="Margin" Value="0 0 0 4"/>
                   <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
                   <Setter Property="Foreground" Value="{ThemeResource TelerikDateTimePickerHeaderForegroundBrush}"/>
               </Style>
           </Setter.Value>
       </Setter>
Tags
DatePicker for XAML
Asked by
Pavel
Top achievements
Rank 1
Answers by
Pavel
Top achievements
Rank 1
Share this question
or