HandyOrg / HandyOrg/HandyControl
hc:SplitButton DropDownElement.ConsistentWidth not work
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
hc:SplitButton DropDownElement.ConsistentWidth not work
Steps to reproduce the bug
<hc:SplitButton HorizontalContentAlignment="Right"
hc:DropDownElement.ConsistentWidth="True"
Content="保存并应用"
Style="{StaticResource SplitButtonPrimary}">
<hc:SplitButton.DropDownContent>
<hc:SimpleStackPanel>
<MenuItem Header="保存" />
</hc:SimpleStackPanel>
</hc:SplitButton.DropDownContent>
</hc:SplitButton>
Expected behavior
No response
Screenshots
No response
NuGet package version
HandyControl 3.4.0
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22000)
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
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 provided hc:SplitButton example in a .NET 6 WPF application with HandyControl 3.4.0, focusing on DropDownElement.ConsistentWidth and the shown HorizontalContentAlignment. Done means the dropdown consistently matches the SplitButton width in this scenario, with the behavior verified against the reproduction.
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
- Needs clarification
- Newbie friendliness
- 35/100