Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in documentation for making value as content property for setter #9581

Merged
merged 3 commits into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion xml/System.Windows/Setter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
## Remarks
<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.

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.
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.

**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.



Expand Down
Loading