Brad
Brad

Reputation: 1207

WPF page layout control selection

I have an imagebrush of a soccer field as the page background and I want to be able create a line up by dragging players off the bench and positioning them on the field accordingly. I don't know what control to use for the background that allows the PlayerCard control to reside where it is dragged. Any help as to how to begin would be appreciated.

You can get the idea here.

What control to use?

Upvotes: 0

Views: 416

Answers (1)

Matt Hamilton
Matt Hamilton

Reputation: 204229

I believe you want the Canvas container control. It lets you arbitrarily place child controls with a Left and Top attached property, similar to the way Windows Forms does it.

Upvotes: 1

Related Questions