Files
docs-desktop/dotnet-desktop-guide/net/wpf/properties/snippets/property-value-inheritance/csharp/MainWindow.xaml
T
Tris ShoresandAndy De George e990fbc9a6 Content update - Property value inheritance (user story 1878471) (#1261)
* Add article, code, toc, and redirects

* Resolve vb project issues

* Update .openpublishing.redirection.json

Co-authored-by: Andy (Steve) De George <[email protected]>
2022-01-05 15:16:55 -08:00

30 lines
1.3 KiB
XML

<Window x:Class="CodeSampleCsharp.MainWindow"
xmlns:local="clr-namespace:CodeSampleCsharp"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Property value inheritance" Height="200" Width="400" Background="Yellow">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="260*"></ColumnDefinition>
<ColumnDefinition Width="260*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!--<XamlElementTree>-->
<Canvas x:Name="canvas1" Grid.Column="0" Margin="20" Background="Orange" AllowDrop="True">
<StackPanel Name="stackPanel1" Margin="20" Background="Green">
<Label Name="label1" Margin="20" Height="40" Width="40" Background="Blue"/>
</StackPanel>
</Canvas>
<!--</XamlElementTree>-->
<local:Canvas_AllowDropInheritDisabled x:Name="canvas11" Grid.Column="1" Margin="20" Background="Orange" AllowDrop="True">
<StackPanel Name="stackPanel11" Margin="20" Background="Green">
<Label Name="label11" Margin="20" Height="40" Width="40" Background="Blue"/>
</StackPanel>
</local:Canvas_AllowDropInheritDisabled>
</Grid>
</Window>