I’m trying to accomplish something like this:
<ScrollViewer Height="287" HorizontalAlignment="Left" Margin="12,12,0,0" Name="boxAnswer" VerticalAlignment="Top" Width="294">
<Label Content="Label" Height="28" Name="label1" VerticalAlignment="top" />
</ScrollViewer>
Except I want to be programmatically placed. When I call .IsAncestorOf on the boxAnswer it returns true but I can’t set .IsDescendentOf on a label element even though I can create one programmatically.
1 Answer