Rotate Button Along the center and Angle : Transform « Windows Presentation Foundation « VB.Net






Rotate Button Along the center and Angle

Rotate Button Along the center and Angle
     

<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="RotatedButton" Height="191" Width="365">
    <Window.Resources>
        <RadialGradientBrush x:Key="brButton" Center="0.5,0.5" RadiusX="1.0" RadiusY="1.0">
            <GradientStop Color="Yellow" Offset="0.0" />
            <GradientStop Color="Orange" Offset="1.0" />
        </RadialGradientBrush>
    </Window.Resources>
    <Grid>
        <Button Name="btn" Content="Sideways" Background="{StaticResource brButton}" Margin="-6,-6.5,0,0"
          Height="43" HorizontalAlignment="Left" VerticalAlignment="Top" Width="94">
            <Button.RenderTransform>
                <RotateTransform Angle="270" CenterX="75" CenterY="50" />
            </Button.RenderTransform>
        </Button>

    </Grid>
</Window>

   
    
    
    
    
  








Related examples in the same category

1.RenderTransform sectionRenderTransform section
2.LayoutTransform sectionLayoutTransform section
3.Transformed Buttons with TranslateTransform X/YTransformed Buttons with TranslateTransform X/Y
4.Transformed Buttons with ScaleTransform and ScaleYTransformed Buttons with ScaleTransform and ScaleY
5.Transformed Buttons with SkewTransform and AngleYTransformed Buttons with SkewTransform and AngleY
6.Transformed Buttons with RotateTransform And AngleTransformed Buttons with RotateTransform And Angle
7.Animate Button RenderTransformAnimate Button RenderTransform
8.Animate Button LayoutTransformAnimate Button LayoutTransform
9.Translate TransformTranslate Transform
10.ScaleTransformScaleTransform
11.SkewTransform appliedSkewTransform applied
12.Applies a RotateTransform to the brush's Transform propertyApplies a RotateTransform to the brush's Transform property
13.TranslateTransform : LayoutTransform SampleTranslateTransform : LayoutTransform Sample
14.MatrixTransform SampleMatrixTransform Sample
15.Render Tranform
16.Rotate a ButtonRotate a Button
17.Rotate in a circle, then flip, when clickedRotate in a circle, then flip, when clicked
18.RotateTransform AppliedRotateTransform Applied
19.Rotation of content by using RotateTransformRotation of content by using RotateTransform
20.Object Transforms in WPFObject Transforms in WPF