This file contains 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
<Grid x:Name="LayoutRoot" Background="Transparent"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="*"/> | |
</Grid.RowDefinitions> | |
<!--TitlePanel contains the name of the application and page title--> | |
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,17"> | |
<TextBlock x:Name="ApplicationTitle" Text="MY MAP APPLICATION" | |
Style="{StaticResource PhoneTextNormalStyle}" FontSize="24"/> |
This file contains 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
<!--LayoutRoot is the root grid where all page content is placed--> | |
<Grid x:Name="LayoutRoot" Background="Transparent"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="*"/> | |
</Grid.RowDefinitions> | |
<!--TitlePanel contains the name of the application and page title--> | |
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> | |
<TextBlock x:Name="ApplicationTitle" Style="{StaticResource PhoneTextNormalStyle}"><Run Text="MY"/><Run Text=" "/><Run Text="FACEBOOK & INSTAGRAM"/><Run Text=" APPLICATION"/></TextBlock> |
This file contains 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
<!--LayoutRoot is the root grid where all page content is placed--> | |
<Grid x:Name="LayoutRoot" Background="Transparent"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="*"/> | |
</Grid.RowDefinitions> | |
<!--TitlePanel contains the name of the application and page title--> | |
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,15" | |
Background="#3B5998"> |
This file contains 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
<DataTemplate x:Key="FeedItemTemplate"> | |
<Grid Background="#7F3B5998" Margin="0,0,0,30"> | |
<Grid.RowDefinitions> | |
<RowDefinition/> | |
<RowDefinition/> | |
<RowDefinition/> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition/> | |
<ColumnDefinition Width="Auto"/> |
This file contains 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
<!--LayoutRoot is the root grid where all page content is placed--> | |
<ScrollViewer x:Name="LayoutRoot"> | |
<!--ContentPanel - place additional content here--> | |
<Grid x:Name="ContentPanel" Background="Transparent"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="Auto"/> |
This file contains 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.Resources> | |
<DataTemplate x:Key="InstagramItemTemplate"> | |
<Grid Margin="6"> | |
<Image Source="{Binding image}" Width="102"/> | |
</Grid> | |
</DataTemplate> | |
<ItemsPanelTemplate x:Key="InstagramListItemsPanel"> | |
<toolkit:WrapPanel/> | |
</ItemsPanelTemplate> | |
</phone:PhoneApplicationPage.Resources> |
This file contains 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
private void FacebookButton_Click(object sender, System.Windows.RoutedEventArgs e) | |
{ | |
NavigationService.Navigate(new Uri("/FacebookSample.xaml", UriKind.Relative)); | |
} | |
private void InstagramButton_Click(object sender, System.Windows.RoutedEventArgs e) | |
{ | |
NavigationService.Navigate(new Uri("/InstagramSample.xaml", UriKind.Relative)); | |
} |
This file contains 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
// Application Identity for Esaan Hackathon | |
private const string appid = "397447343624838"; | |
private const string appsecret = "85d6484f38bb656672924c9be9e33377"; | |
private string accessToken; |
This file contains 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
public FacebookSample() | |
{ | |
InitializeComponent(); | |
// Get Access Token | |
GetAccessTokenAsync(); | |
} | |
private void GetAccessTokenAsync() | |
{ | |
string url = string.Format( |
This file contains 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
private void ButtonGo_Click(object sender, RoutedEventArgs e) { | |
string facebookname = TextBox_FBName.Text; | |
// Reset textblocks, image, and listbox | |
Image_Cover.Source = null; | |
TextBlock_Desc.Text = ""; | |
TextBlock_Name.Text = ""; | |
ListBox_Photos.Items.Clear(); | |
// Initializes new Facebook Client |
OlderNewer