Skip to content

ButtonSpinnerLocation does not work with Simple theme #13123

Closed
@stogle

Description

@stogle

Describe the bug

Setting ButtonSpinner's ButtonSpinnerLocation to Location.Left has no effect when using the Simple theme.

To Reproduce

Steps to reproduce the behavior:

      <ButtonSpinner Height="30" ButtonSpinnerLocation="Left">
        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Everest"/>
      </ButtonSpinner>

Expected behavior

Setting ButtonSpinner's ButtonSpinnerLocation to Location.Left should move the spinner buttons to the left side of the content.

Environment

  • Windows 11
  • Avalonia-Version: 11.0.x

Additional context

The selector in ButtonSpinner.xaml is incorrect. Instead of

<Style Selector="^ /template/ StackPanel#PART_SpinnerPanel">

it should be

      <Style Selector="^ /template/ UniformGrid#PART_SpinnerPanel">

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp-wantedA contribution from the community would be most welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions