Mixer
Mixer

Reputation: 1332

How to apply a style to all Controls of the same type?

How to apply a style to all Controls of the same type (Buttons for example)? without specifying the style every time Control declared in XAML. Ie I want to specify the style once for all the buttons. Is it possible?

Upvotes: 0

Views: 770

Answers (1)

Chamika Sandamal
Chamika Sandamal

Reputation: 24302

just put it without key

<Style TargetType="{x:Type Button}">
</Style>

Upvotes: 4

Related Questions