mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 23:43:19 +02:00
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:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user