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 2 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.
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 for .NET8 and below.
gewarren marked this conversation as resolved.
Show resolved Hide resolved

**Content Model:** For only .NET9 and above, the content property for <xref:System.Windows.Setter> is <xref:System.Windows.Setter.Value%2A>, its now optional to specify <xref:System.Windows.Setter.Value%2A> as an attribute.
gewarren marked this conversation as resolved.
Show resolved Hide resolved



Expand Down
Loading