IsPrintable

I have the following xaml:



<go:NodePanel go:Part.Resizable=“True” go:Part.SelectionAdorned=“True”

Width=“100” Height=“100”

go:Node.Location="{Binding Path=Data.Location, Mode=TwoWay}"

go:Node.LocationSpot=“Center”

go:Node.LayerName=“Background”>





<TextBlock Style="{StaticResource TextBlockStyle}"

HorizontalAlignment=“Right” VerticalAlignment=“Bottom”

Text="{Binding Path=Data.Text, Mode=TwoWay}" />

</go:NodePanel>





Have a second rectangle with go:Part.Printable=“False”

This is because the shape is now better selectable and movable, otherwise it can only be done by the rectangle border.

I did this and set the Printable to false so this fill will not be printed, but it still prints the yellow fill.

Did I do this wrong or is that a ‘feature’ ?



And also, is there another way to have just a rectangle that can be selected by clicking in the middle and not just the line of the rectangle.

The “…ble” Part properties can only be used on the root element of the DataTemplate, applying to the Part as a whole.

Everything within the node that’s visible will be printed.

For your other issue, you can set the Shape.Fill=“Transparent”.

Thx again, and such a simple solution, just set the fill to transparent :)

I didn’t set any fill, but filling with nothing just was the solution.