Add x:Name property to custom control in VB project (#1340)

This commit is contained in:
Tris Shores
2022-03-24 13:33:08 -07:00
committed by GitHub
parent 03760a4124
commit 907918d922
2 changed files with 137 additions and 139 deletions
@@ -1,5 +1,5 @@
<Window x:Class="CodeSampleVb.MainWindow"
xmlns:local="clr-namespace:CodeSampleVb.CodeSampleVb"
<Window x:Class="MainWindow"
xmlns:local="clr-namespace:CodeSampleVb"
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">
@@ -18,7 +18,7 @@
</Canvas>
<!--</XamlElementTree>-->
<local:Canvas_AllowDropInheritDisabled Grid.Column="1" Margin="20" Background="Orange" AllowDrop="True">
<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>