Skip to content

Conversation

@Koichi-Kobayashi
Copy link
Contributor

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Labels can only be displayed on the right.

Issue Number: #1536

What is the new behavior?

  • Add LabelPosition dependency property to ToggleSwitch class
  • Support ElementPlacement.Left and ElementPlacement.Right values
  • Default behavior remains unchanged (label on right, toggle on left)
  • When LabelPosition is set to Left, label appears on the left side
  • Update ToggleSwitch template to dynamically adjust layout based on LabelPosition
  • Add sample demonstration in Wpf.Ui.Gallery ToggleSwitchPage

Other information

2025-12-07_21h27_37

- Add LabelPosition dependency property to ToggleSwitch class
- Support ElementPlacement.Left and ElementPlacement.Right values
- Default behavior remains unchanged (label on right, toggle on left)
- When LabelPosition is set to Left, label appears on the left side
- Update ToggleSwitch template to dynamically adjust layout based on LabelPosition
- Add sample demonstration in Wpf.Ui.Gallery ToggleSwitchPage
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request gallery WPF UI Gallery dotnet release labels Dec 7, 2025
Comment on lines +47 to +48
<ColumnDefinition x:Name="ToggleColumn" Width="Auto" />
<ColumnDefinition x:Name="ContentColumn" Width="*" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo, not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess so...
Since there was #1536 ...

@pomianowski pomianowski merged commit bfc6080 into lepoco:main Jan 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet gallery WPF UI Gallery PR Pull request release styles Topic is related to styles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants