|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 | xmlns:local="clr-namespace:View" |
| 7 | + xmlns:VM="clr-namespace:ViewModel;assembly=ViewModel" |
7 | 8 | mc:Ignorable="d" |
8 | 9 | d:DesignHeight="1920" d:DesignWidth="1080" |
9 | 10 | Title="Profile"> |
10 | 11 |
|
11 | | - <Grid x:Name="AllGrids"> |
| 12 | + |
| 13 | + <Page.Resources> |
| 14 | + <VM:ProfilePageViewModel x:Key="vm"/> |
| 15 | + </Page.Resources> |
| 16 | + |
| 17 | + <ScrollViewer VerticalScrollBarVisibility="Auto"> |
| 18 | + |
| 19 | + <Grid x:Name="AllGrids" Background="White" DataContext="{StaticResource vm}"> |
| 20 | + |
12 | 21 | <Grid.RowDefinitions> |
13 | 22 | <RowDefinition Height="5*"/> |
14 | 23 | <RowDefinition Height="35*"/> |
|
17 | 26 | <RowDefinition Height="10*"/> |
18 | 27 | <RowDefinition Height="10*"/> |
19 | 28 | <RowDefinition Height="20*"/> |
20 | | - <RowDefinition Height="5*"/> |
| 29 | + <RowDefinition Height="5*" MinHeight="50px"/> |
21 | 30 | </Grid.RowDefinitions> |
22 | 31 | <Grid.ColumnDefinitions> |
23 | | - <ColumnDefinition Width="5*"/> |
24 | | - <ColumnDefinition Width="5*"/> |
| 32 | + <ColumnDefinition Width="1*"/> |
| 33 | + <ColumnDefinition Width="9*"/> |
25 | 34 | <ColumnDefinition Width="80*"/> |
26 | | - <ColumnDefinition Width="5*"/> |
27 | | - <ColumnDefinition Width="5*"/> |
| 35 | + <ColumnDefinition Width="9*"/> |
| 36 | + <ColumnDefinition Width="1*"/> |
28 | 37 | </Grid.ColumnDefinitions> |
| 38 | + |
29 | 39 | <Canvas x:Name="PhotoCarousel" Grid.Column="1" Grid.Row ="1" Grid.ColumnSpan="3" Grid.RowSpan="1" Background="#23000000"/> |
30 | 40 | <Grid x:Name="MainInfoGrid" Grid.Column="2" Grid.Row="2" Background="{StaticResource BackgroundSecundary}"> |
| 41 | + |
31 | 42 | <Grid.ColumnDefinitions> |
32 | 43 | <ColumnDefinition Width="25*"/> |
33 | 44 | <ColumnDefinition Width="25*"/> |
|
38 | 49 | <RowDefinition Height="60*"/> |
39 | 50 | <RowDefinition Height="40*"/> |
40 | 51 | </Grid.RowDefinitions> |
41 | | - <Label x:Name="NameLabel" HorizontalAlignment="Center" Content="PETER JANSEN" Grid.ColumnSpan="4" Grid.RowSpan="1" FontSize="48"/> |
42 | | - <Label x:Name="AgeLabel" Content="24 jaar" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Stretch"/> |
43 | | - <Label x:Name="LocationLabel" Content="Zwolle" Grid.Column="1" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Stretch"/> |
44 | | - <Label x:Name="SchoolNameLabel" Content="Windesheim" Grid.Column="2" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Stretch"/> |
45 | | - <Label x:Name="EducationLabel" Content="HBO-ICT" Grid.Column="3" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Stretch"/> |
| 52 | + |
| 53 | + <Label x:Name="NameLabel" HorizontalAlignment="Center" Content="{Binding Name}" Grid.ColumnSpan="4" Grid.RowSpan="1" FontSize="32"/> |
| 54 | + <Label x:Name="AgeLabel" Content="{Binding Age}" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Stretch" FontSize="16"/> |
| 55 | + <Label x:Name="LocationLabel" Content="{Binding City}" Grid.Column="1" HorizontalAlignment="Center" Grid.Row="1" FontSize="16" VerticalAlignment="Stretch"/> |
| 56 | + <Label x:Name="SchoolNameLabel" Content="{Binding School}" Grid.Column="2" HorizontalAlignment="Center" Grid.Row="1" FontSize="16" VerticalAlignment="Stretch"/> |
| 57 | + <Label x:Name="EducationLabel" Content="{Binding Study}" Grid.Column="3" HorizontalAlignment="Center" Grid.Row="1" FontSize="16" VerticalAlignment="Stretch"/> |
46 | 58 | </Grid> |
47 | | - <Grid x:Name="InterestsGrid" Grid.Column="2" Grid.Row="3" Background="{StaticResource BackgroundSecundary}"/> |
48 | | - <Grid x:Name="InformationTextGrid" Grid.Column="2" Grid.Row="4" Background="{StaticResource BackgroundSecundary}"> |
49 | | - <TextBlock x:Name="DescriptionTextBox" TextWrapping="WrapWithOverflow" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,10,10,10" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/> |
| 59 | + <Grid x:Name="InterestsGrid" Grid.Column="2" Grid.Row="3" Background="{StaticResource BackgroundSecundary}" MinHeight="100px"/> |
| 60 | + <Grid x:Name="InformationTextGrid" Grid.Column="2" Grid.Row="4" Background="{StaticResource BackgroundSecundary}" MinHeight="250px"> |
| 61 | + <TextBlock x:Name="DescriptionTextBox" TextWrapping="WrapWithOverflow" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,10,10,10" FontSize="18" Text="{Binding Description}"/> |
50 | 62 | </Grid> |
51 | | - <Grid/> |
| 63 | + <Grid/> |
| 64 | + |
52 | 65 | <Grid x:Name="QAGrid" Grid.Column="2" Grid.Row="5" Background="{StaticResource BackgroundSecundary}"/> |
53 | 66 | <Grid/> |
54 | 67 | <Grid x:Name="PriorityGrid" Grid.Column="2" Grid.Row="6" Background="{StaticResource BackgroundSecundary}"> |
| 68 | + |
| 69 | + |
55 | 70 | <Grid.ColumnDefinitions> |
56 | 71 | <ColumnDefinition Width="2*"/> |
57 | 72 | <ColumnDefinition Width="8*"/> |
|
65 | 80 | <RowDefinition Height="1*"/> |
66 | 81 | <RowDefinition Height="1*"/> |
67 | 82 | </Grid.RowDefinitions> |
| 83 | + |
68 | 84 | <Label x:Name="PriorityLabelIntelligence" Grid.Column="0" Grid.Row="0" Content="Intelligentie" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,0,0,0"/> |
69 | 85 | <ProgressBar x:Name="IntelligenceProgressBar" Grid.Column="1" Grid.Row="0" Background="{StaticResource BackgroundSecundary}" Margin="10,10,10,10" Value="50" Foreground="{StaticResource BackgroundQuaternary}" MaxHeight="12" MinHeight="12"/> |
70 | 86 |
|
|
85 | 101 |
|
86 | 102 | <Label x:Name="ClimateLabel" Grid.Column="0" Grid.Row="6" Content="Klimaat" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,0,0,0"/> |
87 | 103 | <ProgressBar x:Name="ClimateProgressBar" Grid.Column="1" Grid.Row="6" Background="{StaticResource BackgroundSecundary}" Margin="10,10,10,10" Value="10" Foreground="{StaticResource BackgroundQuaternary}" MaxHeight="12" MinHeight="12"/> |
| 104 | + |
88 | 105 | </Grid> |
89 | 106 |
|
90 | 107 | </Grid> |
| 108 | + </ScrollViewer> |
91 | 109 | </Page> |
0 commit comments