diff options
author | marcinzelent <marcin@zelent.net> | 2017-04-28 17:20:38 +0200 |
---|---|---|
committer | marcinzelent <marcin@zelent.net> | 2017-04-28 17:20:38 +0200 |
commit | d579e6c000e055968e56a9e411d7babe81ead632 (patch) | |
tree | c3d791abd6ba90d804e36a644ed986eed42bb7f9 | |
parent | 6b46f1db25cb231d51a3e77f0146b2af7e464464 (diff) | |
parent | 1dd0fde8ead60a95119eb266d79231235ca7951b (diff) |
Added AppShell
7 files changed, 128 insertions, 5 deletions
diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj index b8fd095..dbee180 100644 --- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj +++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj @@ -104,6 +104,12 @@ <Compile Include="Model\NavMenuItem.cs" /> <Compile Include="Persistency\Persistency.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="View\ApartmentPage.xaml.cs"> + <DependentUpon>ApartmentPage.xaml</DependentUpon> + </Compile> + <Compile Include="View\ApartmentPlanPage.xaml.cs"> + <DependentUpon>ApartmentPlanPage.xaml</DependentUpon> + </Compile> <Compile Include="View\LoginPage.xaml.cs"> <DependentUpon>LoginPage.xaml</DependentUpon> </Compile> @@ -129,10 +135,6 @@ <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </ApplicationDefinition> - <Page Include="AppShell.xaml"> - <Generator>MSBuild:Compile</Generator> - <SubType>Designer</SubType> - </Page> <Page Include="View\LoginPage.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml new file mode 100644 index 0000000..da8d7dd --- /dev/null +++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml @@ -0,0 +1,29 @@ +<Page + x:Class="ApartmentManager.View.ApartmentPage" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="using:ApartmentManager.View" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + mc:Ignorable="d"> + + <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> + <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Width="1000" Margin="50" > + <StackPanel Width="600" Height="200" VerticalAlignment="Top" HorizontalAlignment="Left"> + <TextBlock Text="Apartment Address :" FontSize="20" ></TextBlock> + <TextBlock Text="Floor :" FontSize="20"></TextBlock> + <TextBlock Text="Apartment Number :" FontSize="20"></TextBlock> + <TextBlock Text="Size :" FontSize="20"></TextBlock> + <TextBlock Text="Number of Rooms :" FontSize="20"></TextBlock> + <TextBlock Text="Monthly Charge:" FontSize="20"></TextBlock> + </StackPanel> + <StackPanel Width="400" Height="300" VerticalAlignment="Top" HorizontalAlignment="Right"> + <Button Margin="0,10,0,10" Content="Apartment Plan" HorizontalAlignment="Stretch" Click="click"/> + <Button Margin="0,10,0,10" Content="Personal Info" HorizontalAlignment="Stretch"></Button> + <Button Margin="0,10,0,10" Content="Residents" HorizontalAlignment="Stretch"></Button> + <Button Margin="0,10,0,10" Content="Apartment Changes" HorizontalAlignment="Stretch"></Button> + <Button Margin="0,10,0,10" Content="Apartment Defects" HorizontalAlignment="Stretch"></Button> + </StackPanel> + </StackPanel> + </Grid> +</Page> diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs new file mode 100644 index 0000000..32f0079 --- /dev/null +++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 + +namespace ApartmentManager.View +{ + /// <summary> + /// An empty page that can be used on its own or navigated to within a Frame. + /// </summary> + public sealed partial class ApartmentPage : Page + { + public ApartmentPage() + { + this.InitializeComponent(); + } + + private void click(object sender, RoutedEventArgs e) + { + Frame.Navigate(typeof(ApartmentPlanPage)); + } + } +} diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml new file mode 100644 index 0000000..4f8b466 --- /dev/null +++ b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml @@ -0,0 +1,22 @@ +<Page + x:Class="ApartmentManager.View.ApartmentPlanPage" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="using:ApartmentManager.View" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + mc:Ignorable="d"> + + <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> + <StackPanel Orientation="Horizontal" Margin="50" VerticalAlignment="Center" HorizontalAlignment="Center" > + <Button Background="{x:Null}" Margin="20,0,20,0" > + <SymbolIcon Symbol="Back" ></SymbolIcon> + </Button> + <Image Height="500" Width="1000" /> + <Button Background="{x:Null}" Margin="20,0,20,0" > + <SymbolIcon Symbol="Forward" ></SymbolIcon> + </Button> + </StackPanel> + </Grid> + +</Page> diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs new file mode 100644 index 0000000..45feb63 --- /dev/null +++ b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 + +namespace ApartmentManager.View +{ + /// <summary> + /// An empty page that can be used on its own or navigated to within a Frame. + /// </summary> + public sealed partial class ApartmentPlanPage : Page + { + public ApartmentPlanPage() + { + this.InitializeComponent(); + } + } +} diff --git a/ApartmentManager/ApartmentManager/View/LoginPage.xaml b/ApartmentManager/ApartmentManager/View/LoginPage.xaml index bca57b4..80071d1 100644 --- a/ApartmentManager/ApartmentManager/View/LoginPage.xaml +++ b/ApartmentManager/ApartmentManager/View/LoginPage.xaml @@ -13,7 +13,7 @@ <TextBox ></TextBox> <TextBlock Margin="0,10,0,10" Text="Password"></TextBlock> <TextBox ></TextBox> - <Button Margin="0,10,0,10" Content="Log In" HorizontalAlignment="Stretch"></Button> + <Button Margin="0,10,0,10" Content="Log In" HorizontalAlignment="Stretch" Click="click"></Button> </StackPanel> </Grid> </Page> diff --git a/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs b/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs index 246ec8e..dcc17ee 100644 --- a/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs +++ b/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs @@ -26,5 +26,10 @@ namespace ApartmentManager.View { this.InitializeComponent(); } + + private void click(object sender, RoutedEventArgs e) + { + Frame.Navigate(typeof(ApartmentPage)); + } } } |