CoverFlowBaseStyle.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:hc="clr-namespace:HandyControl.Controls">
  4. <Style x:Key="CoverFlowBaseStyle" TargetType="hc:CoverFlow">
  5. <Setter Property="Focusable" Value="False"/>
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="hc:CoverFlow">
  9. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
  10. <Viewport3D x:Name="PART_Viewport3D">
  11. <Viewport3D.Camera>
  12. <PerspectiveCamera x:Name="PART_Camera" Position="0,0,3" UpDirection="0,1,0" LookDirection="0,0,-1" FieldOfView="90"/>
  13. </Viewport3D.Camera>
  14. <Viewport3D.Children>
  15. <ModelVisual3D>
  16. <ModelVisual3D.Content>
  17. <DirectionalLight Color="White" Direction="1,0,-4" />
  18. </ModelVisual3D.Content>
  19. </ModelVisual3D>
  20. <ModelVisual3D>
  21. <ModelVisual3D.Content>
  22. <DirectionalLight Color="White" Direction="-1,0,-4" />
  23. </ModelVisual3D.Content>
  24. </ModelVisual3D>
  25. <ModelVisual3D x:Name="PART_VisualParent"/>
  26. </Viewport3D.Children>
  27. </Viewport3D>
  28. </Border>
  29. </ControlTemplate>
  30. </Setter.Value>
  31. </Setter>
  32. </Style>
  33. </ResourceDictionary>