Visual Basic (Declaration) | |
---|---|
Public Property LocationSpot As Spot |
C# | |
---|---|
public Spot LocationSpot {get; set;} |
Property Value
The default value is Spot.TopLeft. The value must be a specific Spot -- i.e. one for which Spot.IsSpot is true. The value is actually stored on the Part.VisualElement. One normally sets it by setting or data-binding the attached property on the root element of the DataTemplate.When the Node.LocationElementName is the default value (an empty string) or when it explicitly refers to the Part.VisualElement, and when this LocationSpot
property is Spot.TopLeft, the Node.Location will be the same as the Node.Position.
However, it is common to set this to Spot.Center, so that the Node.Location has a value corresponding to the point at the center of the Node.LocationElement. (The Node.Position always refers to the top-left corner point of the Part.Bounds.)