Skip to content

Commit 9aa8498

Browse files
author
Anjali
authored
Changes in documentation for making value as content property for setter (#9581)
1 parent 3532c76 commit 9aa8498

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/System.Windows/Setter.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
## Remarks
4747
<xref:System.Windows.Style>s and the different types of triggers (classes that inherit from <xref:System.Windows.TriggerBase>) use <xref:System.Windows.Setter>s to apply property values.
4848
49-
Note that you must specify both the <xref:System.Windows.Setter.Property%2A> and <xref:System.Windows.Setter.Value%2A> properties on a <xref:System.Windows.Setter> for the setter to be meaningful. If one or both properties are not set, an exception will be thrown.
49+
You must specify both the <xref:System.Windows.Setter.Property%2A> and <xref:System.Windows.Setter.Value%2A> properties on a <xref:System.Windows.Setter> for the setter to be meaningful. In .NET 8 and earlier versions, an exception is thrown if one or both properties aren't set.
50+
51+
**Content Model:** In .NET 9 and later versions, the content property for <xref:System.Windows.Setter> is <xref:System.Windows.Setter.Value%2A>, and it's optional to specify <xref:System.Windows.Setter.Value%2A> as an attribute.
5052
5153
5254

0 commit comments

Comments
 (0)