Backport the fix to prop precedence from .NET to Framework (#1171)

* Update page4.xaml

* Update page4.xaml

* Add snippet

* Change reference
This commit is contained in:
Andy (Steve) De George
2021-10-21 12:35:11 -07:00
committed by GitHub
parent 700f725681
commit cb4acd590a
10 changed files with 350 additions and 22 deletions
@@ -23,7 +23,7 @@ ms.assetid: 1fbada8e-4867-4ed1-8d97-62c07dad7ebc
## Dependency Properties Might Be "Set" in Multiple Places
The following is example [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)] where the same property (<xref:System.Windows.Controls.Control.Background%2A>) has three different "set" operations that might influence the value.
[!code-xaml[PropertiesOvwSupport#DPPrecedence](~/samples/snippets/csharp/VS_Snippets_Wpf/PropertiesOvwSupport/CSharp/page4.xaml#dpprecedence)]
:::code language="xaml" source="./snippets/dependency-property-value-precedence/xaml/MainWindow.xaml" id="DependencyPropertyValuePrecedence":::
Here, which color do you expect will apply—red, green, or blue?