Jedediah
Jedediah

Reputation: 1944

Is it possible to duplicate a shape via a transform (or something else)

I'm trying to create a pause style button in XAML. To create the standard two side-by-side bars, it seems like I should be able to draw a single rectangle, and the apply some sort of transformation to duplicate it and offset the duplicated rectangle, but I've no idea where to begin. Creating two rectangles doesn't seem like the right approach to me, but I don't really know enough about XAML to know for sure

Upvotes: 2

Views: 70

Answers (1)

sa_ddam213
sa_ddam213

Reputation: 43596

Simple solution is to use the pause symbol from the Webdings font, no elements, transforms required

Example:

  <Button FontFamily="Webdings" FontSize="20" Content=";" />

enter image description here

Upvotes: 2

Related Questions