Hi,
I am using a DataTemplateDictionary with 2 DataTemplate for showing Default & Shadow Nodes.
Now in UISpy I can see Default nodes but not ShadowNodes. I found out the reason go:Part.LayerName is
set to “Bacnkground” for shadowNodes (as it has be in background for any overlapping of nodes) . If i
change it to “Foreground” (Like the Default node template) I can see shadow nodes, but I can’t do it as shdown node should be in background.
Now can any one help me to see DataTemplate with go:Part.LayerName = Foreground in UISpy?
ShadowNode template looks like
<DataTemplate x:Key="ShadowNodeTemplate"> <aut:AutomationGridPanel AutomationIdPrefix="ShadowNode" go:Part.SelectionAdorned="False" Margin="0" go:Part.LayerName="Background" go:Part.Resizable="False" go:Node.Location="{Binding Path=Data.Location, Mode=TwoWay}" Height="{Binding Data.Height}" Width="{Binding Data.Width}"> <Grid> <Grid.Effect> <BlurEffect Radius="8"/> </Grid.Effect> <TextBlock x:Name="image" AutomationProperties.HelpText="{Binding Path=Data.DisplayName}" Background="{Binding Path=Data.NodeImageBrush}" AutomationProperties.Name="{Binding Path=Data.MediaId}"> <TextBlock.Effect> <BlurEffect Radius="8"/> </TextBlock.Effect> </TextBlock> </Grid> </aut:AutomationGridPanel> </DataTemplate>
Thanks,
Deep