Multiple choice technology web technology

Consider the code <Setter Property="Background" Value="Green"/> Hello Which background color will be applied to button?

  1. Green

  2. Red

  3. Either green or red (default color black) will be applied

  4. Error

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In WPF/XAML, locally set properties always take precedence over styled properties. Even though the Style defines Background as 'Green', the direct Background='Red' setting on the Button element overrides it. This is a fundamental property value precedence rule: inline/local values > style setters > default values. The button will appear red.