Changing Visual Elements’ Angles with SkewTransform

SkewTransform enables you to skew a visual element for the specified angles on both the X-axis and Y-axis, simulating 3D depth for 2D objects. The following code demonstrates how to apply to a ListBox a horizontal skew of 15° and a vertical skew of 30°, where the center point is established by CenterX and CenterY properties:

<ListBox Name="SkewListBox" Grid.Row="1" Grid.Column="0"         Style="{StaticResource ListStyle}">    <ListBox.RenderTransform>        <SkewTransform AngleX="15" AngleY="30" CenterX="50" CenterY="50" />    </ListBox.RenderTransform></ListBox>

Skewing is probably the most impressive transform if you then try to use visual elements and controls, ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.