|
9 | 9 | xmlns:components="clr-namespace:View.Components" |
10 | 10 | mc:Ignorable="d" |
11 | 11 | d:DesignHeight="450" d:DesignWidth="800" |
12 | | - Title="ProfileSettings"> |
| 12 | + Title="{Binding SelectedItem.Header, ElementName=SettingsTabs}"> |
13 | 13 |
|
14 | 14 | <Page.DataContext> |
15 | 15 | <VM:SettingsPageViewModel/> |
|
24 | 24 | <RowDefinition Height="85*"/> |
25 | 25 | <RowDefinition Height="15*"/> |
26 | 26 | </Grid.RowDefinitions> |
27 | | - <TabControl TabStripPlacement="Top" Padding="0" BorderThickness="0" Grid.RowSpan="2"> |
| 27 | + <TabControl x:Name="SettingsTabs" TabStripPlacement="Top" Padding="0" BorderThickness="0" Grid.RowSpan="2"> |
28 | 28 | <TabItem Header="Persoonlijk" Selector.Selected="TabControl_Selected"> |
29 | 29 | <Grid Background="{StaticResource BackgroundSecundary}"> |
30 | 30 | <Grid.RowDefinitions> |
|
52 | 52 | <DatePicker Grid.Column="2" HorizontalAlignment="Left" Grid.Row="4" VerticalAlignment="Center" Width="220" Text="{Binding DateOfBirth, Mode=TwoWay}"/> |
53 | 53 | <RadioButton Content="Man" IsChecked="{Binding Sex, Mode=TwoWay}" Grid.Column="2" HorizontalAlignment="Left" Grid.Row="5" VerticalAlignment="Center"/> |
54 | 54 | <RadioButton Content="Vrouw" IsChecked="{Binding Sex, Mode=TwoWay, ConverterParameter=true, Converter={StaticResource InvertBoolConverter}}" Grid.Column="2" HorizontalAlignment="Left" Margin="80,0,0,0" Grid.Row="5" VerticalAlignment="Center"/> |
55 | | - <Label Content="Persoonlijk" FontSize="22" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
| 55 | + <!--<Label Content="Persoonlijk" FontSize="22" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>--> |
56 | 56 | </Grid> |
57 | 57 | </TabItem> |
58 | 58 | <TabItem Header="School" Selector.Selected="TabControl_Selected"> |
|
75 | 75 | <TextBox Grid.Column="2" HorizontalAlignment="Left" Grid.Row="1" Text="{Binding SchoolName, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Center" Width="220" Height="18"/> |
76 | 76 | <TextBox Grid.Column="2" HorizontalAlignment="Left" Grid.Row="2" Text="{Binding Study, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Center" Width="220" Height="18"/> |
77 | 77 | <TextBox Grid.Column="2" HorizontalAlignment="Left" Grid.Row="3" Text="{Binding SchoolCity, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Center" Width="220" Height="18"/> |
78 | | - <Label Content="School" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
| 78 | + <!--<Label Content="School" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/>--> |
79 | 79 | </Grid> |
80 | 80 | </TabItem> |
81 | 81 | <TabItem Header="Beschrijving" Selector.Selected="TabControl_Selected"> |
|
93 | 93 | </Grid.ColumnDefinitions> |
94 | 94 | <Label Content="Schrijf hier wat leuks over jezelf (max 420 woorden)." Grid.Column="1" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Center" Height="26" Width="281"/> |
95 | 95 | <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Description, Mode=TwoWay}" TextWrapping="Wrap" Grid.ColumnSpan="1" /> |
96 | | - <Label Content="Beschrijving" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
| 96 | + <!--<Label Content="Beschrijving" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/>--> |
97 | 97 | </Grid> |
98 | 98 | </TabItem> |
99 | 99 | <TabItem Header="Interesses" Selector.Selected="TabControl_Selected"> |
|
108 | 108 | <ColumnDefinition Width="70*"/> |
109 | 109 | <ColumnDefinition Width="25*"/> |
110 | 110 | </Grid.ColumnDefinitions> |
111 | | - <Label Content="Interesses" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
| 111 | + <!--<Label Content="Interesses" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center"/>--> |
112 | 112 | <ItemsControl x:Name="InterestControl" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding ChosenInterests, Mode=TwoWay}"> |
113 | 113 | <ItemsControl.ItemsPanel> |
114 | 114 | <ItemsPanelTemplate> |
|
128 | 128 | <StackPanel.DataContext> |
129 | 129 | <VM:ProfilePagePhotosViewModel/> |
130 | 130 | </StackPanel.DataContext> |
| 131 | + <!--<Label Content="Profielfoto's" Grid.Column="1" FontSize="22" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20"/>--> |
131 | 132 | <ItemsControl ItemsSource="{Binding Images}" Margin="20"> |
132 | 133 | <!-- Example array for design --> |
133 | 134 | <!--<d:ItemsControl.ItemsSource> |
|
0 commit comments