I have a DatePicker with HorizontalAlignment set to Stretch, but it only stretches to a certain maximimum width (unlike the blue bar for instance).
I would like to either have the DatePicker's three segments or the middle one stretch proportionally to an arbitrary length.
How can I do this?
The
DatePicker
has aButton
named "FlyoutButton" which limits theMaxWidth
of the control itself. You can find it in the Generic.xaml.So, widening the
MaxWidth
should work:BTW, the
FindDescendant
extension method comes from the CommunityToolkit.WinUI.Extensions NuGet package.