You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would we allow setting a Width, or what is the proposal here? I think this could be useful indeed, we just need to make sure the defaults stay the way they are to not break default behavior in apps that use this control! But yeah, having the flexibility to override the default widths would be helpful!
@niels9001 I added an attached property to the EqualPanel which allows you to adjust a child proportionally to the other children.
Here's the xaml from the samples above
Notice the controls:EqualPanel.Factor="1.5" This tells the EqualPanel to make that item 1.5 times as large as the rest. My implementation ensures that this proportionality is respected, and that the minimum item is at least as wide as its desired with (unless the finalSize is smaller, in which case every item is shrunk).
The default Factor value is 1, so default behavior is maintained.
This would perverse the default behavior as equivalent to the EqualPanel and allow the LayoutLength to be overridden to any GridLength value creating far greater customizability.
Activity
niels9001 commentedon Nov 26, 2025
Would we allow setting a
Width, or what is the proposal here? I think this could be useful indeed, we just need to make sure the defaults stay the way they are to not break default behavior in apps that use this control! But yeah, having the flexibility to override the default widths would be helpful!Avid29 commentedon Nov 26, 2025
@niels9001 I added an attached property to the
EqualPanelwhich allows you to adjust a child proportionally to the other children.Here's the xaml from the samples above

Notice the
controls:EqualPanel.Factor="1.5"This tells theEqualPanelto make that item 1.5 times as large as the rest. My implementation ensures that this proportionality is respected, and that the minimum item is at least as wide as its desired with (unless the finalSize is smaller, in which case every item is shrunk).The default
Factorvalue is1, so default behavior is maintained.Avid29 commentedon Jan 7, 2026
The demo code above is outdated as a potential solution
The ideal behavior would be to change the default
Segmentedtemplate to aWrapPanel2The default
SegmentedItemStylewould then containThis would perverse the default behavior as equivalent to the
EqualPaneland allow theLayoutLengthto be overridden to anyGridLengthvalue creating far greater customizability.