-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dashboard.xaml
232 lines (232 loc) · 16.9 KB
/
Dashboard.xaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<UserControl x:Class="Social_Blade_Dashboard.Dashboard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
xmlns:local="clr-namespace:Social_Blade_Dashboard"
mc:Ignorable="d"
d:DesignHeight="850" d:DesignWidth="1100">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*" />
<ColumnDefinition Width="4*" />
</Grid.ColumnDefinitions>
<Grid.Resources>
<Style TargetType="materialDesign:PackIcon">
<Setter Property="Width" Value="30"></Setter>
<Setter Property="Height" Value="30"></Setter>
</Style>
</Grid.Resources>
<Grid Grid.Column="0" Background="#F6F6F8">
<StackPanel Margin="10">
<Grid Height="60">
<Button Style="{StaticResource MaterialDesignFloatingActionButton}" HorizontalAlignment="Left"
BorderBrush="{x:Null}" Background="{x:Null}">
<StackPanel Margin="-5">
<materialDesign:PackIcon Kind="ReorderHorizontal" Foreground="Gray" />
</StackPanel>
</Button>
<ComboBox HorizontalAlignment="Right" Width="100" materialDesign:HintAssist.Hint="Last 15 Days">
<ComboBoxItem>
<TextBlock Text="Last 15 Days" />
</ComboBoxItem>
<ComboBoxItem>
<TextBlock Text="Last 30 Days" />
</ComboBoxItem>
</ComboBox>
</Grid>
<WrapPanel HorizontalAlignment="Center">
<Border BorderBrush="White" BorderThickness="5" Margin="20 0" CornerRadius="15">
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth0" UniformCornerRadius="15" BorderThickness="5"
BorderBrush="White" Width="110" Height="130" Background="#F6F6F8">
<StackPanel Margin="10">
<materialDesign:PackIcon Kind="Twitter" Foreground="#29A3EC" />
<TextBlock FontWeight="SemiBold" FontSize="25" Text="280K" Margin="0 10 0 0" />
<TextBlock FontSize="12" Text="Followers" />
<materialDesign:PackIcon Kind="EllipsisHorizontal" HorizontalAlignment="Right" />
</StackPanel>
</materialDesign:Card>
</Border>
<Border BorderBrush="White" BorderThickness="5" Margin="20 0" CornerRadius="15">
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth0" UniformCornerRadius="15" BorderThickness="5"
BorderBrush="White" Width="110" Height="130" Background="#F6F6F8">
<StackPanel Margin="10">
<materialDesign:PackIcon Kind="Instagram">
<materialDesign:PackIcon.Foreground>
<LinearGradientBrush StartPoint="1,0" EndPoint="0.5,1">
<GradientStop Color="#912A73" Offset="0" />
<GradientStop Color="#FA8E22" Offset="1" />
</LinearGradientBrush>
</materialDesign:PackIcon.Foreground>
</materialDesign:PackIcon>
<TextBlock FontWeight="SemiBold" FontSize="25" Text="690K" Margin="0 10 0 0" />
<TextBlock FontSize="12" Text="Followers" />
<materialDesign:PackIcon Kind="EllipsisHorizontal" HorizontalAlignment="Right" />
</StackPanel>
</materialDesign:Card>
</Border>
<Border BorderBrush="White" BorderThickness="5" Margin="20 0" CornerRadius="15">
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth0" UniformCornerRadius="15" BorderThickness="5"
BorderBrush="White" Width="110" Height="130" Background="#F6F6F8">
<StackPanel Margin="10">
<materialDesign:PackIcon Kind="Youtube" Foreground="Red" />
<TextBlock FontWeight="SemiBold" FontSize="25" Text="2.3M" Margin="0 10 0 0" />
<TextBlock FontSize="12" Text="Followers" />
<materialDesign:PackIcon Kind="EllipsisHorizontal" HorizontalAlignment="Right" />
</StackPanel>
</materialDesign:Card>
</Border>
<Border BorderBrush="White" BorderThickness="5" Margin="20 0" CornerRadius="15">
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth0" UniformCornerRadius="15" BorderThickness="5"
BorderBrush="White" Width="110" Height="130" Background="#F6F6F8">
<StackPanel Margin="10">
<materialDesign:PackIcon Kind="Facebook" Foreground="#29A3EC" />
<TextBlock FontWeight="SemiBold" FontSize="25" Text="60K" Margin="0 10 0 0" />
<TextBlock FontSize="12" Text="Followers" />
<materialDesign:PackIcon Kind="EllipsisHorizontal" HorizontalAlignment="Right" />
</StackPanel>
</materialDesign:Card>
</Border>
</WrapPanel>
<materialDesign:Card Margin="30 20" UniformCornerRadius="20">
<StackPanel>
<Grid>
<TextBlock Margin="20" HorizontalAlignment="Left" FontWeight="SemiBold" Text="Instagram Subscribers" FontSize="18"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<TextBlock FontWeight="ExtraBold" FontSize="14" Text="" FontFamily="wingdings" VerticalAlignment="Center" Foreground="#42A5F4" />
<TextBlock Text="Gained" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="SemiBold" FontSize="14" Margin="5 0 10 0" />
<TextBlock FontWeight="ExtraBold" FontSize="14" Text="" FontFamily="wingdings" VerticalAlignment="Center" Foreground="#F55F54" />
<TextBlock Text="Lost" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="SemiBold" FontSize="14" Margin="5 0 20 0" />
</StackPanel>
</Grid>
<lvc:CartesianChart Series="{Binding SeriesCollection}" Foreground="Black" Margin="10 0" Height="200">
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding Labels}" Separator="{x:Static lvc:DefaultAxes.CleanSeparator}" />
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis LabelFormatter="{Binding Formatter}" />
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
</StackPanel>
</materialDesign:Card>
<WrapPanel HorizontalAlignment="Center">
<materialDesign:Card Margin="10" UniformCornerRadius="20" Padding="10">
<StackPanel>
<TextBlock Text="Key Matrics" Margin="10 20" FontWeight="SemiBold" />
<Grid Height="150">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="Clicks" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="SemiBold" />
<TextBlock Text="Likes" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="SemiBold" />
<TextBlock Text="Followers" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="SemiBold" />
<TextBlock Text="Impressions" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="SemiBold" />
<StackPanel Grid.Column="1" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock Text="10K" FontWeight="SemiBold" Margin="5 0" />
<ProgressBar Margin="5 0" Width="100" Height="8" Foreground="#FFFFFF13" Background="#FFE8E8E8" BorderBrush="#FFF3F349" Value="78" />
<TextBlock Text="12K" FontWeight="SemiBold" />
</StackPanel>
<StackPanel Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock Text="10K" FontWeight="SemiBold" Margin="5 0" />
<ProgressBar Margin="5 0" Width="100" Height="8" Foreground="#FFFFFF13" Background="#FFE8E8E8" BorderBrush="#FFF3F349" Value="78" />
<TextBlock Text="12K" FontWeight="SemiBold" />
</StackPanel>
<StackPanel Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock Text="10K" FontWeight="SemiBold" Margin="5 0" />
<ProgressBar Margin="5 0" Width="100" Height="8" Foreground="SeaGreen" Background="#FFE8E8E8" BorderBrush="SeaGreen" Value="78" />
<TextBlock Text="12K" FontWeight="SemiBold" />
</StackPanel>
<StackPanel Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock Text="10K" FontWeight="SemiBold" Margin="5 0" />
<ProgressBar Margin="5 0" Width="100" Height="8" Foreground="SeaGreen" Background="#FFE8E8E8" BorderBrush="SeaGreen" Value="78" />
<TextBlock Text="12K" FontWeight="SemiBold" />
</StackPanel>
</Grid>
</StackPanel>
</materialDesign:Card>
<materialDesign:Card Margin="10" UniformCornerRadius="20" Background="#633648">
<StackPanel Margin="10">
<TextBlock Text="Engagged Users" FontSize="14" Foreground="White" TextAlignment="Center" />
<TextBlock Text="12.5K" TextAlignment="Center" Margin="0 5" Foreground="White" FontSize="18" />
<lvc:CartesianChart Margin="0 5" Series="{Binding LastHourSeries}" Hoverable="False" DataTooltip="{x:Null}" Height="160" Width="160">
<lvc:CartesianChart.AxisX>
<lvc:Axis MinValue="0" />
</lvc:CartesianChart.AxisX>
</lvc:CartesianChart>
<materialDesign:PackIcon Kind="ArrowUp" HorizontalAlignment="Center" Margin="0 5" Width="20" Height="20" Foreground="#62A78B" />
</StackPanel>
</materialDesign:Card>
<materialDesign:Card Margin="10" UniformCornerRadius="20" Background="#633648">
<StackPanel Margin="10">
<TextBlock Text="Page Impression" FontSize="14" Foreground="White" TextAlignment="Center" />
<TextBlock Text="12.5K" TextAlignment="Center" Margin="0 5" Foreground="White" FontSize="18" />
<lvc:CartesianChart Margin="0 5" Series="{Binding LastHourSeries1}" Hoverable="False" DataTooltip="{x:Null}" Height="160" Width="160">
<lvc:CartesianChart.AxisX>
<lvc:Axis MinValue="0" />
</lvc:CartesianChart.AxisX>
</lvc:CartesianChart>
<materialDesign:PackIcon Kind="ArrowUp" HorizontalAlignment="Center" Margin="0 5" Width="20" Height="20" Foreground="#62A78B" />
</StackPanel>
</materialDesign:Card>
</WrapPanel>
</StackPanel>
</Grid>
<StackPanel Grid.Column="1" Background="White">
<WrapPanel VerticalAlignment="Top" Margin="20 20 20 10">
<Button Style="{StaticResource MaterialDesignFloatingActionButton}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black">
<StackPanel Margin="-5">
<materialDesign:PackIcon Kind="BellOutline" />
</StackPanel>
</Button>
<Button Background="#FFFFEEFA" BorderBrush="#FFFFEEFA" Foreground="#FFF0689E" Margin="10 0" Height="40">
<WrapPanel HorizontalAlignment="Center">
<materialDesign:PackIcon Kind="GiftOutline" Width="25" Height="25" />
<TextBlock Text="2 NEW UPDATES" VerticalAlignment="Center" FontWeight="SemiBold" Margin="10 0" />
</WrapPanel>
</Button>
<Button Style="{StaticResource MaterialDesignFloatingActionButton}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black">
<StackPanel Margin="-5">
<materialDesign:PackIcon Kind="UserOutline" />
</StackPanel>
</Button>
</WrapPanel>
<Border Margin="40 10" CornerRadius="20" Background="#FFFFEEFA">
<Image Source="Images/cartoon-woman-pretty.png" Stretch="Uniform" x:Name="ImgCartoon" Height="150" />
</Border>
<Calendar Margin="45 10" />
<materialDesign:Card Margin="20 10" Padding="5" UniformCornerRadius="20" HorizontalAlignment="Center">
<WrapPanel Margin="10">
<materialDesign:PackIcon Kind="HandPeace" Foreground="#FFC83D" VerticalAlignment="Center" Margin="10 0" />
<TextBlock Margin="10 0" VerticalAlignment="Center">
<TextBlock.Inlines>
<Run Text="Say Hi to" />
<Run Text="Laith Hart" FontWeight="SemiBold" FontSize="14" />
</TextBlock.Inlines>
</TextBlock>
<Image Source="Images/avatar1.jpg" Width="40" Height="40" Margin="10 0" x:Name="avatar1" />
</WrapPanel>
</materialDesign:Card>
<materialDesign:Card Margin="20 10" Padding="5" UniformCornerRadius="20" HorizontalAlignment="Center">
<WrapPanel Margin="10">
<materialDesign:PackIcon Kind="HandPeace" Foreground="#FFC83D" VerticalAlignment="Center" Margin="10 0" />
<TextBlock Margin="10 0" VerticalAlignment="Center">
<TextBlock.Inlines>
<Run Text="Say Hi to" />
<Run Text="Laith Hart" FontWeight="SemiBold" FontSize="14" />
</TextBlock.Inlines>
</TextBlock>
<Image Source="Images/avatar1.jpg" Width="40" Height="40" Margin="10 0" x:Name="avatar2" />
</WrapPanel>
</materialDesign:Card>
</StackPanel>
</Grid>
</UserControl>