Last active
August 29, 2015 13:56
-
-
Save Tapanila/8890673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <phone:PhoneApplicationPage | |
| x:Class="TT_WP8_Caliburn_2.Views.MainPage" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | |
| xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro.Platform" | |
| xmlns:viewModels="clr-namespace:TT_WP8_Caliburn_2.ViewModels" | |
| mc:Ignorable="d" | |
| FontFamily="{StaticResource PhoneFontFamilyNormal}" | |
| FontSize="{StaticResource PhoneFontSizeNormal}" | |
| Foreground="{StaticResource PhoneForegroundBrush}" | |
| SupportedOrientations="Portrait" Orientation="Portrait" | |
| shell:SystemTray.IsVisible="True" | |
| d:DataContext="{d:DesignInstance Type=viewModels:MainPageViewModel, IsDesignTimeCreatable=True}" | |
| micro:Bind.AtDesignTime="True"> | |
| <!-- | |
| These two lines before are enabling the Design-Time support | |
| They tell designer which file to load in this case MainPageViewModel.cs | |
| --> | |
| <Grid x:Name="LayoutRoot" Background="Transparent"> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="*"/> | |
| </Grid.RowDefinitions> | |
| <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> | |
| <TextBlock Text="TT-WP8-Caliburn-2" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/> | |
| </StackPanel> | |
| <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="600"/> | |
| <RowDefinition Height="*"/> | |
| </Grid.RowDefinitions> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="150"/> | |
| <ColumnDefinition Width="*"/> | |
| </Grid.ColumnDefinitions> | |
| <!-- We are telling that items can be found on Items variable --> | |
| <phone:LongListSelector Margin="20,0" | |
| ItemsSource="{Binding Items}" | |
| x:Name="Items" | |
| Grid.ColumnSpan="2" | |
| Grid.Row="0"/> | |
| <!-- | |
| Just defining x:Name we are binding the Text of TextBlock into | |
| Public String Name | |
| --> | |
| <TextBlock Grid.Column="0" | |
| Grid.Row="1" | |
| x:Name="Information" | |
| Margin="10" | |
| VerticalAlignment="Center"/> | |
| <!-- | |
| Just defining Name Fetchlist we are binding the Click into calling | |
| method called Fetchlist | |
| --> | |
| <Button x:Name="FetchList" | |
| Grid.Column="1" | |
| Grid.Row="1" | |
| Content="Fetch List" /> | |
| </Grid> | |
| </Grid> | |
| </phone:PhoneApplicationPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment