using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
public class TransformedButtons : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new TransformedButtons());
}
public TransformedButtons()
{
Canvas canv = new Canvas();
Content = canv;
Button btn = new Button();
btn.Content = "Rotated";
btn.RenderTransform = new RotateTransform(-30);
canv.Children.Add(btn);
Canvas.SetLeft(btn, 650);
Canvas.SetTop(btn, 100);
}
}
|