Rotation showing bounding box : Border « Windows Presentation Foundation « VB.Net Tutorial






<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel>
  <Button HorizontalAlignment="Left">
    <Border BorderBrush="Black" BorderThickness="1">
      <Line Stroke="Blue" Y1="30" X2="100" />
    </Border>
  </Button>
  <Button HorizontalAlignment="Left">
    <Border BorderBrush="Black" BorderThickness="1">
      <Border.LayoutTransform>
        <RotateTransform Angle="50" />
      </Border.LayoutTransform>
      <Line Stroke="Blue" Y1="30" X2="100" />
    </Border>
  </Button>
</StackPanel>
</Page>
WPF Rotation Showing Bounding Box








16.53.Border
16.53.1.Rotation showing bounding boxRotation showing bounding box
16.53.2.Change borderChange border
16.53.3.Mouse Enter and leave a BorderMouse Enter and leave a Border