fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.48k stars 515 forks source link

wpf calendar size issu in dropdown button #1193

Closed mijq1 closed 3 months ago

mijq1 commented 3 months ago

I've added a wpf calendar to a dropdown button.

On first dropdown the calendar is more than 5 times a wide as high. The size reverts to square after first date selection. I have tried to use a viewbox to set the size (normal tactics for the calendar), but with no luck.

I would really appreciate if you could help me set the normal size and aspect ratio on first dropdown. Best regards Mikkel --- ### Environment - Fluent.Ribbon __v10.0.4__ - Windows __11__ - .NET Framework __?.net 8.0_
batzen commented 3 months ago

Added a DropDownButton with a Calendar inside to the showcase application and everything appears normal. Maybe that's related to my changes regarding the default container for elements inside the DropDownButton, which was MenuItem before the changes and is now ContentPresenter.

mijq1 commented 3 months ago

Thank you for your help. I have used the Fluent ribbon in many of my applications over the years.