<Window x:Class="Test.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:WpfTest"
    Title="Test" Height="480" Width="640">
    <Window.Resources>
        <c:SolarSystem x:Key="Sol"></c:SolarSystem>
    </Window.Resources>
    <StackPanel>
        <Button Name="pulsante" Height="50" Width="200" 
                RenderTransformOrigin="0.5, 0.5"
                Click="Button_Click"
                Content="{Binding ElementName=Slider, Path=Value}"
                ContentStringFormat="F">
            <Button.RenderTransform>
                <RotateTransform Angle="{Binding ElementName=Slider,
                    Path=Value}"></RotateTransform>
            </Button.RenderTransform>
        </Button>
        <Slider Name="Slider" Margin="0 25 0 0" Width="400" Minimum="1" Maximum="360"></Slider>
        <ListBox Width="400" Height="300" Margin="0 25 0 0"
                 ItemsSource="{Binding Source={StaticResource Sol}, Path=SolarSystemObjects}"></ListBox>
    </StackPanel>
</Window>
