-
Notifications
You must be signed in to change notification settings - Fork 32
/
AchievementsPage.xaml
44 lines (39 loc) · 2.46 KB
/
AchievementsPage.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
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="using:Flexibility.Shared"
x:Class="Flexibility.Shared.AchievementsPage"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true" Title="Achievements">
<ContentPage.Resources>
<Style x:Key="AchievementViewStyle" TargetType="Grid">
<Setter Property="Margin" Value="5"/>
<Setter Property="HeightRequest" Value="100"/>
<Setter Property="WidthRequest" Value="90"/>
</Style>
<StyleSheet>
<![CDATA[
#container {
justify-content: space-around;
flex-wrap: wrap;
margin: 20 0;
}
]]>
</StyleSheet>
</ContentPage.Resources>
<StackLayout>
<ScrollView>
<FlexLayout x:Name="container">
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="First Issue" Icon="" IsAchieved="true" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="First PR" Icon="" IsAchieved="true" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Masher" Icon="" IsAchieved="false" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Novice Contributor" Icon="" IsAchieved="true" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Reviewer" Icon="" IsAchieved="true" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Tester" Icon="" IsAchieved="false" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Frequent Contrib" Icon="" IsAchieved="false" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Lab Master" Icon="" IsAchieved="false" />
<local:AchievementView Style="{StaticResource AchievementViewStyle}" Achievement="Architect" Icon="" IsAchieved="false" />
</FlexLayout>
</ScrollView>
</StackLayout>
</ContentPage>