
上QQ阅读APP看书,第一时间看更新
Property element syntax
The properties can also be defined as an element when you cannot assign the value within the quotes. This generally starts with <element.PropertyName> and ends with </element.PropertyName>. The following example shows you how to write the Background property as an element to the Button:
<Button> <Button.Background> <SolidColorBrush Color="Red" /> </Button.Background> </Button>