aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2017-05-27 15:03:49 +0200
committermarcinzelent <marcin@zelent.net>2017-05-27 15:03:49 +0200
commit02ddab95008f2ccbf170893a9d07b32958b93a87 (patch)
treee5ea2af3c96ee8a60dee17e557d055beb733516f
parent7050477dd8e2b68ff5183fc99b034fcc7cfa4429 (diff)
Created new main page for board members.
-rw-r--r--ApartmentManager/ApartmentManager/View/BmMainPage.xaml89
-rw-r--r--ApartmentManager/ApartmentManager/View/BmMainPage.xaml.cs16
2 files changed, 105 insertions, 0 deletions
diff --git a/ApartmentManager/ApartmentManager/View/BmMainPage.xaml b/ApartmentManager/ApartmentManager/View/BmMainPage.xaml
new file mode 100644
index 0000000..77abf21
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/BmMainPage.xaml
@@ -0,0 +1,89 @@
+<Page
+ x:Class="ApartmentManager.View.BmMainPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:core="using:Microsoft.Xaml.Interactions.Core"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
+ xmlns:local="using:ApartmentManager.View"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:vm="using:ApartmentManager.ViewModel"
+ mc:Ignorable="d">
+ <Page.DataContext>
+ <vm:BmViewModel />
+ </Page.DataContext>
+
+ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+ <TextBlock
+ Margin="80,30,0,0"
+ FontSize="36"
+ Text="Welcome, board member!" />
+ <Grid Margin="100,100,0,0">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="600" />
+ <ColumnDefinition Width="200" />
+ </Grid.ColumnDefinitions>
+ <Image
+ Grid.Column="0"
+ VerticalAlignment="Top"
+ Source="ms-appx:///Assets/Ostbanehus.jpg" />
+ <StackPanel Grid.Column="1" Margin="20,0,0,0">
+ <TextBlock
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ FontSize="20"
+ Text="Manage:" />
+ <Button
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ Content="Apartments">
+ <interactivity:Interaction.Behaviors>
+ <core:EventTriggerBehavior EventName="Click">
+ <core:NavigateToPageAction TargetPage="ApartmentManager.View.BmApartmentsPage" />
+ </core:EventTriggerBehavior>
+ </interactivity:Interaction.Behaviors>
+ </Button>
+ <Button
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ Content="Contract owners">
+ <interactivity:Interaction.Behaviors>
+ <core:EventTriggerBehavior EventName="Click">
+ <core:NavigateToPageAction TargetPage="ApartmentManager.View.BmContractOwnersPage" />
+ </core:EventTriggerBehavior>
+ </interactivity:Interaction.Behaviors>
+ </Button>
+ <Button
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ Content="Residents">
+ <interactivity:Interaction.Behaviors>
+ <core:EventTriggerBehavior EventName="Click">
+ <core:NavigateToPageAction TargetPage="ApartmentManager.View.BmResidentsPage" />
+ </core:EventTriggerBehavior>
+ </interactivity:Interaction.Behaviors>
+ </Button>
+ <Button
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ Content="Defects">
+ <interactivity:Interaction.Behaviors>
+ <core:EventTriggerBehavior EventName="Click">
+ <core:NavigateToPageAction TargetPage="ApartmentManager.View.BmDefectsPage" />
+ </core:EventTriggerBehavior>
+ </interactivity:Interaction.Behaviors>
+ </Button>
+ <Button
+ Margin="0,0,0,10"
+ HorizontalAlignment="Stretch"
+ Content="Apartment changes">
+ <interactivity:Interaction.Behaviors>
+ <core:EventTriggerBehavior EventName="Click">
+ <core:NavigateToPageAction TargetPage="ApartmentManager.View.BmChangesPage" />
+ </core:EventTriggerBehavior>
+ </interactivity:Interaction.Behaviors>
+ </Button>
+ </StackPanel>
+ </Grid>
+ </Grid>
+</Page>
diff --git a/ApartmentManager/ApartmentManager/View/BmMainPage.xaml.cs b/ApartmentManager/ApartmentManager/View/BmMainPage.xaml.cs
new file mode 100644
index 0000000..5d287f1
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/BmMainPage.xaml.cs
@@ -0,0 +1,16 @@
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+
+namespace ApartmentManager.View
+{
+ /// <summary>
+ /// Main page for board members.
+ /// </summary>
+ public sealed partial class BmMainPage : Page
+ {
+ public BmMainPage()
+ {
+ InitializeComponent();
+ }
+ }
+}