Skip to content

[DatePicker] Incorrect spacing and height #10465

@niels9001

Description

@niels9001

Describe the bug

Compared to other button controls, DatePicker does not seem to have the correct height and an incorrect spacing between the header and the button.

Image

Windows Visual Kit (Figma):

Image

Steps to reproduce the bug

      HorizontalAlignment="Right"
      VerticalAlignment="Center"
      Orientation="Vertical"
      Spacing="64">

      <StackPanel Orientation="Horizontal">
          <Button VerticalAlignment="Bottom" Content="Button" />
          <TextBox VerticalAlignment="Bottom" Text="Text" />
          <DatePicker VerticalAlignment="Bottom" />
      </StackPanel>
      <StackPanel Orientation="Horizontal">
          <Button VerticalAlignment="Bottom" Content="Button" />
          <TextBox
              VerticalAlignment="Bottom"
              Header="TextBox"
              Text="Text" />
          <DatePicker VerticalAlignment="Bottom" Header="DatePicker" />

      </StackPanel>
  </StackPanel>

NuGet package version

1.7.250310001

Metadata

Metadata

Assignees

Labels

area-DateTimePickersDatePicker, TimePicker, CalendarDatePicker, CalendarViewbugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions