From eae77ab8b77986f946639376148b4a1ef6d6a9f4 Mon Sep 17 00:00:00 2001 From: JeroenOortwijn <51476918+JeroenOortwijn@users.noreply.github.com> Date: Tue, 14 Apr 2020 16:36:24 +0200 Subject: [PATCH] Updated line number references The line-referencing has an off-by-one error. --- docs/framework/wpf/advanced/attached-properties-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework/wpf/advanced/attached-properties-overview.md b/docs/framework/wpf/advanced/attached-properties-overview.md index 3b933853a8623..4bff479093cfa 100644 --- a/docs/framework/wpf/advanced/attached-properties-overview.md +++ b/docs/framework/wpf/advanced/attached-properties-overview.md @@ -61,7 +61,7 @@ The following example shows how you can set an attached property in code. In thi [!code-csharp[PropertiesOvwSupport#APCode](~/samples/snippets/csharp/VS_Snippets_Wpf/PropertiesOvwSupport/CSharp/page4.xaml.cs#apcode)] [!code-vb[PropertiesOvwSupport#APCode](~/samples/snippets/visualbasic/VS_Snippets_Wpf/PropertiesOvwSupport/visualbasic/page4.xaml.vb#apcode)] -Similar to the XAML case, if `myCheckBox` had not already been added as a child element of `myDockPanel` by the third line of code, the fourth line of code would not raise an exception, but the property value would not interact with a parent and thus would do nothing. Only a value set on a child element combined with the presence of a parent element will cause an effective behavior in the rendered application. (In this case, you could set the attached property, then attach to the tree. Or you could attach to the tree then set the attached property. Either action order provides the same result.) +Similar to the XAML case, if `myCheckBox` had not already been added as a child element of `myDockPanel` by the fourth line of code, the fifth line of code would not raise an exception, but the property value would not interact with a parent and thus would do nothing. Only a value set on a child element combined with the presence of a parent element will cause an effective behavior in the rendered application. (In this case, you could set the attached property, then attach to the tree. Or you could attach to the tree then set the attached property. Either action order provides the same result.) ## Attached Property Metadata