DynamicAero2 icon indicating copy to clipboard operation
DynamicAero2 copied to clipboard

Is there a way to theme spinners (e.g. numeric steppers, etc.)

Open philstopford opened this issue 3 years ago • 2 comments

Many thanks for this. One question that I had is :

Numeric steppers seem to still get the ugly gray button look; I wondered whether I might be overlooking something.

philstopford avatar Jan 28 '22 04:01 philstopford

Styleが適用されているコントロールにはテーマが適用されません。 Styleとテーマの両方を利用したい場合、スタイルにBasedOnを指定する必要があります

The theme will not be applied to controls that have Style applied to them. If you want to use both Style and Theme, you need to set BasedOn="{StaticResource {x:type Button}}" to Style.

<Button>
  <Button.Style>
    <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}"}>
        <!-- setters and getters-->
    </Style>
  </Button.Style>
</Button

manju-summoner avatar Jan 30 '22 06:01 manju-summoner

Thanks for responding. I'm still a little lost; would it be possible to have an example of this in your project, as a reference?

EDIT: I see the button was added as an example.

philstopford avatar Jan 31 '22 18:01 philstopford