microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

[DatePicker] Incorrect spacing and height

Open niels9001 opened this issue 9 months ago • 1 comments

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

niels9001 avatar Mar 25 '25 14:03 niels9001

Hi. So what's the status of this issue? Not only the size of the DatePicker is wrong, but also the space between it's header text and DatePicker is wrong too. WindowsAppSDK = 1.8.251003001

torum avatar Nov 02 '25 03:11 torum