SRD2.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRD2"
  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:CyberX8_Themes.UserControls"
  7. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  8. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  9. mc:Ignorable="d"
  10. d:DesignHeight="200" d:DesignWidth="200" Name="srd2">
  11. <Viewbox Stretch="Fill">
  12. <Viewbox.RenderTransform>
  13. <TransformGroup>
  14. <RotateTransform Angle="{Binding ElementName=srd1,Path=RotateTransformValue}"/>
  15. </TransformGroup>
  16. </Viewbox.RenderTransform>
  17. <Border>
  18. <Canvas Width="200" Height="200" Grid.Row="1">
  19. <StackPanel Canvas.Top="50" Visibility="{Binding ElementName=srd2,Path=SRD2Visibility}" Panel.ZIndex="2">
  20. <TextBlock FontSize="30" Text="{Binding ElementName=srd2,Path=CassetteName}" TextAlignment="Center" Margin="0,0,0,0" Width="200"/>
  21. </StackPanel>
  22. <Polygon Stroke="Black" StrokeThickness="1" Points="0,100 0,50 50,0 150,0 200,50 200,100 " Visibility="{Binding ElementName=srd2,Path=SRD2Visibility}">
  23. <Polygon.Fill>
  24. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  25. <GradientStop Color="Silver" Offset="0.0" />
  26. <GradientStop Color="White" Offset="0.5" />
  27. <GradientStop Color="Silver" Offset="1" />
  28. </LinearGradientBrush>
  29. </Polygon.Fill>
  30. </Polygon>
  31. </Canvas>
  32. </Border>
  33. </Viewbox>
  34. </UserControl>