The content height of the ContentDialog is error
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When I upgrade from 3.0.0-preview.9 to 3.0.0-preview.10 or later, I get an error with the content height of the ContentDialog
To Reproduce
I'm just using IContentDialogService's ShowSimpleDialogAsync method, but when I upgraded the package from 3.0.0-preview.9 to 3.0.0-preview.10, I got an error with the height of ContentDialog
`
await _contentDialogService.ShowSimpleDialogAsync(
new SimpleContentDialogCreateOptions
{
Title = "The cake?",
Content = "IS A LIE!",
PrimaryButtonText = "Save",
CloseButtonText = "Cancel"
});
`
Expected behavior
I hope the content height of the ContentDialog is normal
Screenshots
OS version
Windows 11
.NET version
.NET 8.0
WPF-UI NuGet version
Later than 3.0.0-preview.9
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with IContentDialogService.ShowSimpleDialogAsync and the provided SimpleContentDialogCreateOptions on Windows 11 with .NET 8. Compare behavior between WPF-UI 3.0.0-preview.9 and preview.10 or later; done means the ContentDialog content height is normal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100