diff options
| -rw-r--r-- | ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml index 5928b69..e7018bf 100644 --- a/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml +++ b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml @@ -13,7 +13,7 @@      </Page.DataContext>      <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> -        <StackPanel Margin="50" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="top" > +        <StackPanel Margin="20" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="top" >              <ListView    ItemsSource="{Binding CatalogSingleton.Residents}"  Margin="10,10,10,116" SelectedItem="{Binding NewResident, Mode=TwoWay}" > @@ -79,6 +79,8 @@              <StackPanel Width="400" Margin="0,0,50,0">                  <TextBlock Margin="0,10,0,10" Text="Resident Info" HorizontalAlignment="Center" FontSize="20" FontWeight="Bold"/> +                <Image Source="{Binding NewResident.Picture, Mode=TwoWay}" Height="150" Width="150" ></Image> +                <Button Content="Upload Picture" HorizontalAlignment="Stretch" Margin="0,10,0,0" Command="{Binding UploadResidentPhoto}"  ></Button>                  <TextBlock Margin="0,10,0,10" Text="Name"/>                  <TextBox Text="{Binding NewResident.FirstName, Mode=TwoWay}" />                  <TextBlock Margin="0,10,0,10" Text="Last Name"/> @@ -89,7 +91,7 @@                  <TextBox Text="{Binding NewResident.Email, Mode=TwoWay}" />                  <TextBlock Margin="0,10,0,10" Text="Phone Number"/>                  <TextBox Text="{Binding NewResident.Phone, Mode=TwoWay}" /> -                <Button Content="Upload Picture" HorizontalAlignment="Stretch" Margin="0,10,0,0" Command="{Binding UploadResidentPhoto}"  ></Button> +                                  <StackPanel Orientation="Horizontal">                      <Button  Margin="0,10,12,10" Content="Create" Width="125" Command="{Binding CreateResidentCommand}"/>  |