49 lines
2.8 KiB
XML
49 lines
2.8 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:HandyControl.Controls">
|
|
|
|
<!--<Style x:Key="CoverFlowItemBaseStyle" TargetType="controls:CoverFlowItem">
|
|
<Setter Property="Width" Value="{Binding ItemWidth,RelativeSource={RelativeSource AncestorType=controls:CoverFlow}}"/>
|
|
<Setter Property="Height" Value="{Binding ItemHeight,RelativeSource={RelativeSource AncestorType=controls:CoverFlow}}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:CoverFlowItem">
|
|
<Border BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
|
|
<ContentPresenter Margin="{TemplateBinding Padding}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
|
|
<Style x:Key="CoverFlowBaseStyle" TargetType="controls:CoverFlow">
|
|
<!--<Setter Property="ItemContainerStyle" Value="{StaticResource CoverFlowItemBaseStyle}"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:CoverFlow">
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
|
|
<Viewport3D x:Name="PART_Viewport3D">
|
|
<Viewport3D.Camera>
|
|
<PerspectiveCamera x:Name="PART_Camera" Position="0,0,3" UpDirection="0,1,0" LookDirection="0,0,-1" FieldOfView="100" NearPlaneDistance="0.125"/>
|
|
</Viewport3D.Camera>
|
|
<Viewport3D.Children>
|
|
<ModelVisual3D>
|
|
<ModelVisual3D.Content>
|
|
<DirectionalLight Color="White" Direction="1,0,-4" />
|
|
</ModelVisual3D.Content>
|
|
</ModelVisual3D>
|
|
<ModelVisual3D>
|
|
<ModelVisual3D.Content>
|
|
<DirectionalLight Color="White" Direction="-1,0,-4" />
|
|
</ModelVisual3D.Content>
|
|
</ModelVisual3D>
|
|
<ModelVisual3D x:Name="PART_VisualParent"/>
|
|
</Viewport3D.Children>
|
|
</Viewport3D>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |