Repository navigation
Expand file tree
/
Copy pathCarouselExample.xaml
More file actions
86 lines (86 loc) · 3.88 KB
/
Copy pathCarouselExample.xaml
File metadata and controls
86 lines (86 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.CarouselExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
d:DesignHeight="600"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<TabControl>
<TabItem Header="Card">
<wd:Carousel
x:Name="myCarousel2"
Width="400"
Height="200"
AutoPlay="True"
AutoPlayInterval="0:0:3"
DisplayMemberPath="URL"
ItemClickCommand="{Binding CarouselClickCommand}"
ItemsSource="{Binding ImagePaths}" />
</TabItem>
<TabItem Header="Default">
<wd:Carousel
Width="400"
Height="200"
AutoPlay="False"
AutoPlayInterval="0:0:4"
ItemClick="Carousel_ItemClick"
ShowArrows="False">
<Border Background="#722ed1">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="Slide 1" />
</Border>
<Border Background="#eb2f96">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="Slide 2" />
</Border>
<Border Background="#1890ff">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="Slide 3" />
</Border>
<Border Background="#52c41a">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="Slide 4" />
</Border>
<Border Background="#faad14">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="Slide 5" />
</Border>
</wd:Carousel>
</TabItem>
</TabControl>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/CarouselExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/CarouselExample.xaml.cs" CodeType="CSharp" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/ViewModels/CarouselExampleViewModel.cs"
CodeType="CSharp"
Haader="ViewModel" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>