Ghost1372

everything can be handy

CoverFlow

This control displays the cover in 3D and can be used to enhance the interface effect.

1
2
3
4
[TemplatePart(Name = ElementViewport3D, Type = typeof(Viewport3D))]
[TemplatePart(Name = ElementCamera, Type = typeof(ProjectionCamera))]
[TemplatePart(Name = ElementVisualParent, Type = typeof(ModelVisual3D))]
public class CoverFlow : Control

Attributes

Property Description Default Value Remarks
PageIndex Page Number
Loop Whether to loop display

Method

Method Description
Add(string) Add a resource
Add(Uri) Add a resource
AddRange(IEnumerable) Add resources in batches
Next
Prev

Case

1
2
3
4
5
6
7
8
9
10
11
12
13
14
CoverFlowMain.AddRange(new []
{
new Uri(@"pack://application:,,,/Resources/Img/Album/1.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/2.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/3.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/4.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/5.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/6.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/7.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/8.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/9.jpg"),
new Uri(@"pack://application:,,,/Resources/Img/Album/10.jpg")
});
CoverFlowMain.JumpTo(2);
1
<hc:CoverFlow x:Name="CoverFlowMain" Margin="32" Width="500" Height="300"/>

CoverFlow

0%