TMDoor.xaml 1.2 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="Venus_Themes.UserControls.TMDoor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Venus_Themes.UserControls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800" x:Name="tmDoor">
  9. <Viewbox>
  10. <Viewbox.RenderTransform>
  11. <RotateTransform Angle="{Binding ElementName=tmDoor,Path=RotateTransformValue}" CenterX="4" CenterY="40"></RotateTransform>
  12. </Viewbox.RenderTransform>
  13. <Grid>
  14. <Rectangle Fill="DimGray" Width="8" VerticalAlignment="Top" Height="80" x:Name="r1"/>
  15. <Rectangle Fill="DimGray" Width="8" VerticalAlignment="Bottom" Height="80" x:Name="r2">
  16. <Rectangle.RenderTransform>
  17. <RotateTransform Angle="180" CenterX="4" CenterY="40"/>
  18. </Rectangle.RenderTransform>
  19. </Rectangle>
  20. </Grid>
  21. </Viewbox>
  22. </UserControl>