summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-04-03 05:03:20 +0400
committerGravatar Vitaly Takmazov2013-04-03 05:03:20 +0400
commit151e56ec2e3466389804b8874b4224bf6bd08097 (patch)
tree4b2c07be26036e470afba1f399619c8d64ae8216 /Juick/MainPage.xaml
parent4959050e7996e92ac97f4d05064130251a0628c5 (diff)
New pages, LoginViewModel, Validation (in progress)
Diffstat (limited to 'Juick/MainPage.xaml')
-rw-r--r--Juick/MainPage.xaml19
1 files changed, 12 insertions, 7 deletions
diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml
index 2e40d0f..45e1ff9 100644
--- a/Juick/MainPage.xaml
+++ b/Juick/MainPage.xaml
@@ -22,14 +22,19 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
- <controls:Pivot Title="juick" Grid.Row="1">
- <controls:PivotItem Header="My feed" Margin="0, -5, 0, 0">
- <usercontrols:MessageList x:Name="Home" />
- </controls:PivotItem>
- <controls:PivotItem Header="Last" Margin="0, -5, 0, 0">
- <usercontrols:MessageList x:Name="Last"/>
- </controls:PivotItem>
+ <controls:Pivot x:Name="Pages" Title="juick" Grid.Row="1" ItemsSource="{Binding Pages}">
+ <controls:Pivot.HeaderTemplate>
+ <DataTemplate>
+ <TextBlock Text="{Binding Caption}"></TextBlock>
+ </DataTemplate>
+ </controls:Pivot.HeaderTemplate>
+ <controls:Pivot.ItemTemplate>
+ <DataTemplate>
+ <usercontrols:MessageList />
+ </DataTemplate>
+ </controls:Pivot.ItemTemplate>
</controls:Pivot>
+
</Grid>
<phone:PhoneApplicationPage.ApplicationBar>
<phoneshell:ApplicationBar IsVisible="True" IsMenuEnabled="True">