Skip to content

Commit 7ca13e3

Browse files
committed
Add CoverFlow
1 parent 1e45ad5 commit 7ca13e3

13 files changed

Lines changed: 982 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Install-Package DevWinUI
135135
## 🔥 DevWinUI.Controls 🔥
136136
### ⚡ What’s Inside? ⚡
137137

138+
- ✨ CoverFlow
138139
- ✨ ContentSlider
139140
- ✨ CarouselView
140141
- ✨ EasyCarouselPanel
@@ -318,6 +319,9 @@ Install-Package DevWinUI.ContextMenu
318319

319320
## 🕰️ History 🕰️
320321

322+
### CoverFlow
323+
![CoverFlow](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/CoverFlow.gif)
324+
321325
### ContentSlider
322326
![ContentSlider](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/ContentSlider.gif)
323327

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
namespace DevWinUI;
2+
3+
public partial class CoverFlow
4+
{
5+
public EasingFunctionBase EasingFunction
6+
{
7+
get { return (EasingFunctionBase)GetValue(EasingFunctionProperty); }
8+
set { SetValue(EasingFunctionProperty, value); }
9+
}
10+
public static readonly DependencyProperty EasingFunctionProperty =
11+
DependencyProperty.Register(nameof(EasingFunction), typeof(EasingFunctionBase), typeof(CoverFlow), null);
12+
13+
public Double ManipulationThreshold
14+
{
15+
get { return (Double)GetValue(ManipulationThresholdProperty); }
16+
set { SetValue(ManipulationThresholdProperty, value); }
17+
}
18+
public static readonly DependencyProperty ManipulationThresholdProperty =
19+
DependencyProperty.Register(nameof(ManipulationThreshold), typeof(Double), typeof(CoverFlow), new PropertyMetadata(80d));
20+
21+
public Duration PageDuration
22+
{
23+
get { return (Duration)GetValue(PageDurationProperty); }
24+
set { SetValue(PageDurationProperty, value); }
25+
}
26+
public static readonly DependencyProperty PageDurationProperty =
27+
DependencyProperty.Register(nameof(PageDuration), typeof(Duration), typeof(CoverFlow), null);
28+
29+
public double RotationAngle
30+
{
31+
get { return (double)GetValue(RotationAngleProperty); }
32+
set { SetValue(RotationAngleProperty, value); }
33+
}
34+
public static readonly DependencyProperty RotationAngleProperty =
35+
DependencyProperty.Register(nameof(RotationAngle), typeof(double), typeof(CoverFlow), new PropertyMetadata(45d, new PropertyChangedCallback(CoverFlow.OnValuesChanged)));
36+
37+
public new double Scale
38+
{
39+
get { return (double)GetValue(ScaleProperty); }
40+
set { SetValue(ScaleProperty, value); }
41+
}
42+
public static readonly DependencyProperty ScaleProperty =
43+
DependencyProperty.Register(nameof(Scale), typeof(double), typeof(CoverFlow), new PropertyMetadata(.7d, new PropertyChangedCallback(CoverFlow.OnValuesChanged)));
44+
45+
public Duration SingleItemDuration
46+
{
47+
get { return (Duration)GetValue(SingleItemDurationProperty); }
48+
set { SetValue(SingleItemDurationProperty, value); }
49+
}
50+
public static readonly DependencyProperty SingleItemDurationProperty =
51+
DependencyProperty.Register(nameof(SingleItemDuration), typeof(Duration), typeof(CoverFlow), null);
52+
53+
public double SpaceBetweenItems
54+
{
55+
get { return (double)GetValue(SpaceBetweenItemsProperty); }
56+
set { SetValue(SpaceBetweenItemsProperty, value); }
57+
}
58+
public static readonly DependencyProperty SpaceBetweenItemsProperty =
59+
DependencyProperty.Register(nameof(SpaceBetweenItems), typeof(double), typeof(CoverFlow), new PropertyMetadata(60d, new PropertyChangedCallback(CoverFlow.OnValuesChanged)));
60+
61+
public double SpaceBetweenSelectedItemAndItems
62+
{
63+
get { return (double)GetValue(SpaceBetweenSelectedItemAndItemsProperty); }
64+
set { SetValue(SpaceBetweenSelectedItemAndItemsProperty, value); }
65+
}
66+
public static readonly DependencyProperty SpaceBetweenSelectedItemAndItemsProperty =
67+
DependencyProperty.Register(nameof(SpaceBetweenSelectedItemAndItems), typeof(double), typeof(CoverFlow), new PropertyMetadata(140d, new PropertyChangedCallback(CoverFlow.OnValuesChanged)));
68+
69+
public double ZDistance
70+
{
71+
get { return (double)GetValue(ZDistanceProperty); }
72+
set { SetValue(ZDistanceProperty, value); }
73+
}
74+
public static readonly DependencyProperty ZDistanceProperty =
75+
DependencyProperty.Register(nameof(ZDistance), typeof(double), typeof(CoverFlow), new PropertyMetadata(0.0d, new PropertyChangedCallback(CoverFlow.OnValuesChanged)));
76+
}

0 commit comments

Comments
 (0)